[Uml-devel] branches/KDE/3.5/kdesdk/umbrello/umbrello
Oliver Kellogg
okellogg at users.sourceforge.net
Tue Feb 14 12:15:02 UTC 2006
SVN commit 509465 by okellogg:
Umbrello has the roles of an association "the other way round" wrt Rose.
M +4 -2 petaltree2uml.cpp
--- branches/KDE/3.5/kdesdk/umbrello/umbrello/petaltree2uml.cpp #509464:509465
@@ -379,7 +379,7 @@
is_navigable TRUE)))
*/
PetalNode::NameValueList roleList = roles->attributes();
- for (uint i = Uml::A; i <= Uml::B; i++) {
+ for (uint i = 0; i <= 1; i++) {
PetalNode *roleNode = roleList[i].second.node;
if (roleNode == NULL) {
kdError() << "umbrellify: roleNode of Association is NULL" << endl;
@@ -390,7 +390,9 @@
<< roleNode->name() << endl;
continue;
}
- UMLRole *role = assoc->getUMLRole((Uml::Role_Type) i);
+ // index 0 corresponds to Umbrello roleB
+ // index 1 corresponds to Umbrello roleA
+ UMLRole *role = assoc->getUMLRole((Uml::Role_Type) !i);
QStringList initialArgs = roleNode->initialArgs();
if (initialArgs.count() > 1) {
QString roleName = clean(initialArgs[1]);
More information about the umbrello-devel
mailing list