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

List:       kde-bugs-dist
Subject:    [Bug 117901] KSpell2 has a problem when paragraph starts with
From:       Mashrab Kuvatov <kmashrab () sat ! physik ! uni-bremen ! de>
Date:       2006-01-18 22:10:47
Message-ID: 20060118221047.6932.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=117901         
kmashrab sat physik uni-bremen de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From kmashrab sat physik uni-bremen de  2006-01-18 23:10 -------
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