[Uml-devel] branches/KDE/3.5/kdesdk/umbrello/umbrello
Oliver Kellogg
okellogg at users.sourceforge.net
Fri Nov 3 10:04:06 UTC 2006
SVN commit 601431 by okellogg:
CCBUG:135606 - Print a debug message and backtrace on constructing a duplicate stereotype.
M +5 -0 stereotype.cpp
--- branches/KDE/3.5/kdesdk/umbrello/umbrello/stereotype.cpp #601430:601431
@@ -21,6 +21,11 @@
UMLStereotype::UMLStereotype(const QString &name, Uml::IDType id /* = Uml::id_None */)
: UMLObject( name, id ) {
m_BaseType = Uml::ot_Stereotype;
+ UMLStereotype * existing = UMLApp::app()->getDocument()->findStereotype(name);
+ if (existing) {
+ kdError() << "UMLStereotype constructor: " << name << " already exists" << endl;
+ kdBacktrace(25);
+ }
m_refCount = 0;
}
More information about the umbrello-devel
mailing list