[Uml-devel] KDE/kdesdk/umbrello

Oliver Kellogg okellogg at users.sourceforge.net
Sun Mar 26 06:31:01 UTC 2006


SVN commit 522715 by okellogg:

apply commit 522714 from branches/KDE/3.5

 M  +1 -1      ChangeLog  
 M  +8 -0      umbrello/model_utils.cpp  


--- trunk/KDE/kdesdk/umbrello/ChangeLog #522714:522715
@@ -5,6 +5,7 @@
 * Static variables in java code are not marked static (59190)
 * Save autosave file to a more obvious place (72019)
 * Usability and responsiveness improvements to code import (93296)
+* Memory problem when importing classes from c++ sources (122668)
 
 Version 1.5.2
 
@@ -32,7 +33,6 @@
 * Crash when importing Python files (121952)
 * "void" is imported as class and not datatypes (122184)
 * Crash when creating a datatype with the same name as a class (122188)
-* Memory problem when importing classes from c++ sources (122668)
 * Crash when refusing to rename a class on importing typedef (122914)
 * Java import fails at abstract methods or interfaces (123661)
 
--- trunk/KDE/kdesdk/umbrello/umbrello/model_utils.cpp #522714:522715
@@ -137,6 +137,14 @@
         // Remember packages that we've seen - for avoiding cycles.
         UMLPackageList seenPkgs;
         for (; pkg; pkg = currentObj->getUMLPackage()) {
+            if (nameWithoutFirstPrefix.isEmpty()) {
+                if (caseSensitive) {
+                    if (pkg->getName() == name)
+                        return pkg;
+                } else if (pkg->getName().lower() == name.lower()) {
+                    return pkg;
+                }
+            }
             if (seenPkgs.findRef(pkg) != -1) {
                 kError() << "findUMLObject(" << name << "): "
                 << "breaking out of cycle involving "




More information about the umbrello-devel mailing list