[umbrello-devel] [umbrello] [Bug 191894] class importer inserts classes in the wrong package
Ralf Habacker
ralf.habacker at freenet.de
Sun Feb 2 20:47:16 UTC 2014
https://bugs.kde.org/show_bug.cgi?id=191894
--- Comment #4 from Ralf Habacker <ralf.habacker at freenet.de> ---
There seems to be a logic failure in import_utils:cpp:createUMLObject()
at line 206 there is
UMLObject * o = umldoc->findUMLObject(name, type, parentPkg);
with
name = "Base::XML"
parentPkg = 0
-> returned o has already the "Base" parent package
at line 299
parentPkg = "Logical View"; !!! wrong parentPkg
} else if (parentPkg && !bPutAtGlobalScope) {
UMLPackage *existingPkg = o->umlPackage();
= "Base"
if (existingPkg != umldoc->datatypeFolder()) {
if (existingPkg)
existingPkg->removeObject(o);
else
uError() << "createUMLObject(" << name << "): "
<< "o->getUMLPackage() was NULL";
o->setUMLPackage(parentPkg);
> assign to "logical view" which is incorrect
parentPkg->addObject(o);
-> there is already an object XML in Logical View
}
}
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the umbrello-devel
mailing list