[Uml-devel] kdesdk/umbrello/umbrello

Oliver Kellogg okellogg at users.sourceforge.net
Sun Jan 4 02:48:06 UTC 2004


CVS commit by okellogg: 

loadFromXMI: Fix processing of the "package" attribute.


  M +7 -5      umlobject.cpp   1.20


--- kdesdk/umbrello/umbrello/umlobject.cpp  #1.19:1.20
@@ -298,4 +298,5 @@ bool UMLObject::loadFromXMI( QDomElement
         } else {
                 pkg = element.attribute( "package", "" );
+                if (! pkg.isEmpty()) {
                 if (pkg.contains(QRegExp("\\D")))
                         // Old versions saved the package name instead of the xmi.id.
@@ -304,4 +305,5 @@ bool UMLObject::loadFromXMI( QDomElement
                         pkgId = pkg.toInt();
         }
+        }
         if (pkgId != -1) {
                 UMLDoc* umldoc = dynamic_cast<UMLDoc *>( parent() );






More information about the umbrello-devel mailing list