[Uml-devel] kdesdk/umbrello/umbrello

Oliver Kellogg okellogg at users.sourceforge.net
Mon Dec 13 15:57:00 UTC 2004


CVS commit by okellogg: 

addAssociation(): Put the addAssocToConcepts() call back in (some call path might need it?)


  M +5 -5      umldoc.cpp   1.214


--- kdesdk/umbrello/umbrello/umldoc.cpp  #1.213:1.214
@@ -1356,9 +1356,9 @@ void UMLDoc::addAssociation(UMLAssociati
         // add it to our concept list and the document.
 
-        // Adding the UMLAssociation at the appropriate concepts is done
-        // later (in UMLAssociation::resolveRef()) in order to support
-        // xmi.idref forward references. (The participating concepts
-        // might not yet be known right here.)
-        //addAssocToConcepts(Assoc);
+        // Adding the UMLAssociation at the participating concepts is done
+        // again later (in UMLAssociation::resolveRef()) if they are not yet
+        // known right here.
+        if (Assoc->getObject(A) && Assoc->getObject(B))
+                addAssocToConcepts(Assoc);
 
         // Add the UMLAssociation in this UMLDoc.






More information about the umbrello-devel mailing list