[Uml-devel] KDE/kdesdk/umbrello/umbrello
Oliver Kellogg
okellogg at users.sourceforge.net
Tue Feb 14 12:16:01 UTC 2006
SVN commit 509466 by okellogg:
apply commit 509465 from branches/KDE/3.5
M +4 -2 petaltree2uml.cpp
--- trunk/KDE/kdesdk/umbrello/umbrello/petaltree2uml.cpp #509465:509466
@@ -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) {
kError() << "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