[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [umbrello] [Bug 338797] SEGV crash when umbrello is opening AIXM files
From:       Oliver Kellogg <okellogg () users ! sourceforge ! net>
Date:       2014-09-05 18:47:17
Message-ID: bug-338797-17878-JxS6Xt1k2K () http ! bugs ! kde ! org/
[Download RAW message or body]

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

--- Comment #10 from Oliver Kellogg <okellogg@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 watching all bug changes.
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic