[umbrello-devel] [umbrello] [Bug 337606] Segmentation fault when opening a file that contains an "alternative" combined fragment

Philipp Harms philipp.harms at googlemail.com
Sat Jul 19 18:42:02 UTC 2014


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

--- Comment #2 from Philipp Harms <philipp.harms at googlemail.com> ---
Hi again,

sorry for answering to my own post. I checked out the current code from git.

The problem seems to be calling the UMLScene::setupNewWidget(...) method to add
the dashed line of the alternative to the viewer. It sets up a CmdCreateWidget
object that is meant for being placed on the stack of undoable actions. The
segfault finally occurs when this object looks in the global UMLDoc for the
UMLView that is currently being constructed (which fails and returns an invalid
pointer).

Can somebody confirm my interpretation, please?

I created a patch to add the dashed line just in the same way as all other
widgets in UMLScene::loadWidgetsFromXMI(...) (umlscene.cpp line 3717).

Cheers,
Philipp Harms

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


More information about the umbrello-devel mailing list