[umbrello-devel] [umbrello] [Bug 338797] SEGV crash when umbrello is opening AIXM files

Oliver Kellogg okellogg at users.sourceforge.net
Fri Sep 5 18:47:17 UTC 2014


https://bugs.kde.org/show_bug.cgi?id=338797

--- Comment #10 from Oliver Kellogg <okellogg at users.sourceforge.net> ---
(In reply to Ralf Habacker from comment #8)
> (In reply to Oliver Kellogg from comment #7)
> > 
> > Since the recent class-or-package modifications, m_umlObject may also point
> > to UMLPackage - which means that the static_cast to UMLClassifier* is
> > invalid.
> 
> class-or-package uml objects are created of type UMLClassifier. A later
> retype to a package only sets the WidgetBase class base type member to
> UMLPackage, the object itself is still an UMLClassifier. A cast to
> UMLClassifier therefore should not fail. See CppTree2Uml::parseNamespace for
> more details. 

Ah, I forgot to do a refresh before committing and did not see your comment,
sorry.

Are you saying that the new constructor,
  ClassifierWidget(UMLScene * scene, UMLPackage *o)
is only ever called with UMLClassifier* as the second argument?
I guess I was barking up the wrong tree then.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the umbrello-devel mailing list