[umbrello] [Bug 376804] "Else" part outside of alternative combined fragment on creation

Ralf Habacker bugzilla_noreply at kde.org
Wed Jul 12 17:10:33 UTC 2017


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

--- Comment #2 from Ralf Habacker <ralf.habacker at freenet.de> ---
How to debug: 
1. Compile umbrello with debug informations (the easiest way is on linux)
2. Set a breakpoint at the line mentioned below
3. start umbrello
4. add a sequence diagram
5. add a combined fragment, choose "Alternative" and press okay
6. the debugger will stop at the mentioned breakpoint and you can inspect what
happens with the coordinate settings of the related m_dashLines. 

You need to get familiar with QGraphicsScene and its coordinate system and
handling to be able to understand what goes wrong.

void CombinedFragmentWidget::setCombinedFragmentType(CombinedFragmentType
combinedfragmentType)
{
    m_CombinedFragment = combinedfragmentType;
    UMLWidget::m_resizable =  true ; //(m_CombinedFragment == Normal);
    // creates a dash line if the combined fragment type is alternative or
parallel
    if (m_CombinedFragment == Alt  && m_dashLines.isEmpty())
...< here set breakpoint

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


More information about the umbrello-devel mailing list