[Uml-devel] [Bug 100290] Only the first attribute of the many with the same type is displayed in the class diagram

Oliver Kellogg okellogg at users.sourceforge.net
Sat Feb 26 03:32:11 UTC 2005


------- 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=100290         
okellogg users sourceforge net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From okellogg users sourceforge net  2005-02-26 12:25 -------
CVS commit by okellogg: 

createAutoAttributeAssociations(): Consider attribute name (corresponds
 to association role B name) when deciding whether a given association widget
 between two given classes already exists.
BUG:100290 


  M +3 -1      umlview.cpp   1.208


--- kdesdk/umbrello/umbrello/umlview.cpp  #1.207:1.208
 @ -2499,8 +2499,10  @ void UMLView::createAutoAttributeAssocia
                 Uml::Association_Type assocType = Uml::at_Composition;
                 UMLWidget *w = findWidget( attrType->getID() );
+                AssociationWidget *aw = NULL;
                 // if the attribute type has a widget representation on this view
                 if (w &&
                     // if the AssocWidget does not already exist then
-                    findAssocWidget(assocType, widget, w) == NULL &&
+                    ((aw = findAssocWidget(assocType, widget, w)) == NULL ||
+                      aw->getRoleName(Uml::B) != attr->getName()) &&
                     // if the current diagram type permits compositions
                     AssocRules::allowAssociation(assocType, widget, w, false)) {




More information about the umbrello-devel mailing list