[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [Bug 124507] kdevelop crashes deleting lines in a 4258 line file
From:       Andreas Kling <kling () impul ! se>
Date:       2006-06-23 10:39:40
Message-ID: 20060623103940.6666.qmail () ktown ! kde ! org
[Download RAW message or body]

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
         
http://bugs.kde.org/show_bug.cgi?id=124507         




------- Additional Comments From kling impul se  2006-06-23 12:39 -------
SVN commit 554150 by kling:

When deleting blocks, make sure m_lastInSyncBlock doesn't point to a deleted area.

BUG: 127928
CCBUG: 124507
CCMAIL: cullmann kde org



 M  +4 -0      katebuffer.cpp  


--- branches/KDE/3.5/kdelibs/kate/part/katebuffer.cpp #554149:554150
 @ -807,6 +807,10  @
     // cu block !
     delete buf;
     m_blocks.erase (m_blocks.begin()+index);
+
+    // make sure we don't keep a pointer to the deleted block
+    if( m_lastInSyncBlock >= index )
+      m_lastInSyncBlock = index - 1;
   }
   else
   {
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic