[Uml-devel] branches/KDE/3.5/kdesdk/umbrello/umbrello
Oliver Kellogg
okellogg at users.sourceforge.net
Sat Nov 18 18:43:37 UTC 2006
SVN commit 605965 by okellogg:
get{Super,Sub}Classes(): Include at_Realization.
M +4 -2 umlcanvasobject.cpp
--- branches/KDE/3.5/kdesdk/umbrello/umbrello/umlcanvasobject.cpp #605964:605965
@@ -245,7 +245,8 @@
UMLClassifierList list;
UMLAssociationList assocs = getAssociations();
for (UMLAssociation* a = assocs.first(); a; a = assocs.next()) {
- if ( a->getAssocType() != Uml::at_Generalization ||
+ if ((a->getAssocType() != Uml::at_Generalization &&
+ a->getAssocType() != Uml::at_Realization) ||
a->getObjectId(Uml::A) != getID() )
continue;
UMLClassifier *c = dynamic_cast<UMLClassifier*>(a->getObject(Uml::B));
@@ -264,7 +265,8 @@
UMLClassifierList list;
UMLAssociationList assocs = getAssociations();
for (UMLAssociation* a = assocs.first(); a; a = assocs.next()) {
- if ( a->getAssocType() != Uml::at_Generalization ||
+ if ((a->getAssocType() != Uml::at_Generalization &&
+ a->getAssocType() != Uml::at_Realization) ||
a->getObjectId(Uml::B) != getID() )
continue;
UMLClassifier *c = dynamic_cast<UMLClassifier*>(a->getObject(Uml::A));
More information about the umbrello-devel
mailing list