[Uml-devel] [Bug 135606] Umbrello saves too much copies at xmi

Oliver Kellogg okellogg at users.sourceforge.net
Tue Oct 24 19:41:10 UTC 2006


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=135606         




------- Additional Comments From okellogg users sourceforge net  2006-10-24 21:41 -------
SVN commit 598837 by okellogg:

loadUMLObjectsFromXMI(): Don't addStereotype() if it's already there.
CCBUG:135606


 M  +4 -1      umldoc.cpp  


--- branches/KDE/3.5/kdesdk/umbrello/umbrello/umldoc.cpp #598836:598837
 @ -1805,7 +1805,10  @
         }
         if (ot == ot_Stereotype) {
             UMLStereotype *s = static_cast<UMLStereotype*>(pObject);
-            addStereotype(s);
+            if (findStereotype(s->getName()) != NULL)
+                delete s;
+            else
+                addStereotype(s);
             continue;
         }
         pkg->addObject(pObject);




More information about the umbrello-devel mailing list