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

List:       kde-commits
Subject:    branches/KDE/3.5/kdelibs/kspell2
From:       Mashrab Kuvatov <kmashrab () sat ! physik ! uni-bremen ! de>
Date:       2006-01-18 22:09:16
Message-ID: 1137622156.204382.14597.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 499863 by kuvatov:

Applying a patch to fix a problem when paragraph starts with nonletter
and a misspelled word.

CCMAIL: zack@kde.org
BUG: 117901


 M  +3 -1      filter.cpp  


--- branches/KDE/3.5/kdelibs/kspell2/filter.cpp #499862:499863
@@ -172,7 +172,9 @@
         --currentPosition;
     }
 
-    int start = (!currentPosition) ? 0 : ++currentPosition;
+    // currentPosition == 0 means the first char is not letter
+    // currentPosition == -1 means we reached the beginning
+    int start = (currentPosition < 0) ? 0 : ++currentPosition;
     currentPosition = pos ;
     if ( m_buffer[ currentPosition ].isLetter() ) {
         while ( m_buffer[ currentPosition ].isLetter() ) {
[prev in list] [next in list] [prev in thread] [next in thread] 

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