[Uml-devel] kdesdk/umbrello/umbrello

Oliver Kellogg okellogg at users.sourceforge.net
Tue Jun 1 19:39:00 UTC 2004


CVS commit by okellogg: 

saveToXMI(): Workaround for stereotypes/templates - they should not be
 in objectList at all, but I don't have time to fix that just now.


  M +8 -1      umldoc.cpp   1.152


--- kdesdk/umbrello/umbrello/umldoc.cpp  #1.151:1.152
@@ -1522,8 +1522,15 @@ void UMLDoc::saveToXMI(QIODevice& file) 
                 if (t == ot_Association)
                         continue;
+                if (t == ot_Stereotype || t == ot_Template) {
+                        kdDebug() << "UMLDoc::saveToXMI(" << o->getName()
+                                  << "): FIXME: type " << t
+                                  << " is not supposed to be in objectList"
+                                  << endl;
+                        continue;
+                }
                 if (t == ot_EnumLiteral || t == ot_Attribute || t == ot_Operation) {
                         kdError() << "UMLDoc::saveToXMI(" << o->getName()
                                   << "): internal error: type " << t
-                                  << "is not supposed to be in objectList"
+                                  << " is not supposed to be in objectList"
                                   << endl;
                         continue;






More information about the umbrello-devel mailing list