[Uml-devel] kdesdk/umbrello/umbrello

Oliver Kellogg okellogg at users.sourceforge.net
Thu Dec 30 02:52:05 UTC 2004


CVS commit by okellogg: 

addUMLObject(): Block off template params.


  M +2 -2      umldoc.cpp   1.229


--- kdesdk/umbrello/umbrello/umldoc.cpp  #1.228:1.229
@@ -833,5 +833,5 @@ void UMLDoc::addUMLObject(UMLObject* obj
         Object_Type ot = object->getBaseType();
         if (ot == ot_Attribute || ot == ot_Operation || ot == ot_EnumLiteral
-            || ot == ot_EntityAttribute || ot == ot_Stereotype) {
+            || ot == ot_EntityAttribute || ot == ot_Template || ot == ot_Stereotype) {
                 kdDebug() << "UMLDoc::addUMLObject(" << object->getName()
                         << "): not adding type " << ot << endl;
@@ -1054,5 +1054,5 @@ UMLObject* UMLDoc::createChildObject(UML
                         returnObject = createOperation(umlclassifier);
         } else if(type == ot_Template) {
-                UMLClass *umlclass = dynamic_cast<UMLClass *>(umlobject);
+                UMLClassifier *umlclass = dynamic_cast<UMLClassifier *>(umlobject);
                 if (umlclass)
                         returnObject = createTemplate(umlclass);






More information about the umbrello-devel mailing list