[Uml-devel] branches/KDE/3.5/kdesdk/umbrello/umbrello
Oliver Kellogg
okellogg at users.sourceforge.net
Sat Oct 15 11:52:16 UTC 2005
SVN commit 470948 by okellogg:
allowAssociation(Association_Type,UMLWidget*,UMLWidget*,bool):
Prevent mutual compositions and containments.
BUG:98369
M +4 -4 assocrules.cpp
--- branches/KDE/3.5/kdesdk/umbrello/umbrello/assocrules.cpp #470947:470948
@@ -138,15 +138,15 @@
case at_Coll_Message:
case at_Aggregation:
case at_Relationship:
- case at_Composition:
- case at_Containment:
- return true;//doesn't matter whats already connected to widget
+ return true; // doesn't matter what's already connected to widget
break;
+ case at_Composition: // can't have mutual composition
+ case at_Containment: // can't have mutual containment
case at_Generalization://can have many sub/super types but can't sup/sub each
while( ( assoc = it.current() ) ) {
if( ( widgetA == assoc -> getWidget(A) || widgetA == assoc -> getWidget(B) )
- && assoc -> getAssocType() == at_Generalization )
+ && assoc->getAssocType() == assocType )
return false;
++it;
}
More information about the umbrello-devel
mailing list