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

List:       kde-commits
Subject:    kdelibs/kate/part
From:       Christoph Cullmann <cullmann () kde ! org>
Date:       2005-03-22 19:49:46
Message-ID: 20050322194946.A1F293C3 () office ! kde ! org
[Download RAW message or body]

CVS commit by cullmann: 

fix dh's crash, not sure this is the right way (TM), after testing backport should follow


  M +6 -0      katedocument.cpp   1.806


--- kdelibs/kate/part/katedocument.cpp  #1.805:1.806
@@ -3060,4 +3060,9 @@ void KateDocument::newLine( KateTextCurs
   {
     int pos = textLine->firstChar();
+
+    // this needs testing, perhaps better length(), not sure of atm
+    if (pos < 0)
+      pos = 0;
+
     if (c.col() < pos)
       c.setCol(pos); // place cursor on first char if before


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

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