[Uml-devel] branches/KDE/3.5/kdesdk/umbrello/umbrello
Oliver Kellogg
okellogg at users.sourceforge.net
Tue Oct 24 19:40:57 UTC 2006
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