Commit 4000ba13 authored by Ralf Habacker's avatar Ralf Habacker

Fix 'Loading combined fragments from xmi file adds unwanted else part'

Only add an FloatingDashLineWidget instance if the widget has not been
created in the loading state.

BUG:390780
FIXED-IN:2.24.3 (KDE Applications 17.12.3)
parent 7c0dc5f7
......@@ -228,8 +228,9 @@ void CombinedFragmentWidget::setCombinedFragmentType(CombinedFragmentType combin
{
m_CombinedFragment = combinedfragmentType;
UMLWidget::m_resizable = true ; //(m_CombinedFragment == Normal);
bool isLoading = UMLApp::app()->document()->loading();
// creates a dash line if the combined fragment type is alternative or parallel
if (m_CombinedFragment == Alt && m_dashLines.isEmpty())
if (!isLoading && m_CombinedFragment == Alt && m_dashLines.isEmpty())
{
m_dashLines.push_back(new FloatingDashLineWidget(m_scene, Uml::ID::None, this));
m_scene->addWidgetCmd(m_dashLines.back());
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment