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

List:       kde-commits
Subject:    KDE/kdelibs/kdeui
From:       Laurent Montel <montel () kde ! org>
Date:       2005-09-22 19:21:00
Message-ID: 1127416860.927502.11138.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 463034 by mlaurent:

Forward port fix crash from  Volker Krause


 M  +1 -1      ksyntaxhighlighter.cpp  


--- trunk/KDE/kdelibs/kdeui/ksyntaxhighlighter.cpp #463033:463034
@@ -219,7 +219,7 @@
 		d->currentWord += text[i];
 	    }
 	}
-	if ( !text[len - 1].isLetter() ||
+	if ( ( len > 0 && !text[len - 1].isLetter() ) ||
 	     ( index + 1 ) != text.length() ||
 	     para != paraNo )
 	    flushCurrentWord();
[prev in list] [next in list] [prev in thread] [next in thread] 

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