[Uml-devel] kdesdk/umbrello/umbrello

Oliver Kellogg okellogg at users.sourceforge.net
Wed May 5 15:55:02 UTC 2004


CVS commit by okellogg: 

loadUMLObjectsFromXMI(): Avoid crash when loading foreign XMI files.


  M +4 -1      umldoc.cpp   1.147


--- kdesdk/umbrello/umbrello/umldoc.cpp  #1.146:1.147
@@ -1867,5 +1867,8 @@ bool UMLDoc::loadUMLObjectsFromXMI(QDomE
                         // Therefore the <UML:Namespace.ownedElement> tag is of no
                         // significance.
-                        loadUMLObjectsFromXMI(tempElement);
+                        if( !loadUMLObjectsFromXMI( tempElement ) ) {
+                                kdWarning() << "failed load on " << type << endl;
+                                return false;
+                        }
                         node = node.nextSibling();
                         tempElement = node.toElement();






More information about the umbrello-devel mailing list