[Uml-devel] KDE/kdesdk/umbrello/umbrello

Oliver Kellogg okellogg at users.sourceforge.net
Sat Nov 18 22:38:10 UTC 2006


SVN commit 606001 by okellogg:

formatMultiLineText(): QString::indexOf() returns -1 for no match.

 M  +1 -1      textblock.cpp  


--- trunk/KDE/kdesdk/umbrello/umbrello/textblock.cpp #606000:606001
@@ -201,7 +201,7 @@
     QString text = work;
     QString endLine = getNewLineEndingChars();
     int matches = text.indexOf(QRegExp(breakStr));
-    if(matches)
+    if (matches >= 0)
     {
         // check that last part of string matches, if not, then
         // we have to tack on extra match




More information about the umbrello-devel mailing list