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

Gopala Krishna A krishna.ggk at gmail.com
Thu Dec 24 14:13:28 UTC 2009


SVN commit 1065859 by gopala:

* Fixed crash while importing pascal code..
(QString bound checking before accessing index was missing)



 M  +1 -1      pascalimport.cpp  


--- trunk/KDE/kdesdk/umbrello/umbrello/codeimport/pascalimport.cpp #1065858:1065859
@@ -72,7 +72,7 @@
                 m_source.append(lexeme);
                 lexeme.clear();
             }
-            if (c == ':' && word[i + 1] == '=') {
+            if (i+1 < len && c == ':' && word[i + 1] == '=') {
                 m_source.append(":=");
                 i++;
             } else {




More information about the umbrello-devel mailing list