Commit beb4c640 authored by Ralf Habacker's avatar Ralf Habacker
Browse files

Fix crash on sequence diagram adding creating message.

The fix prevents a ObjectWidget/MessageWidget signal/slot loop by using setPos()
instead of setY().

CCBUG:336997
parent 80a94d4b
......@@ -726,7 +726,7 @@ void MessageWidget::slotWidgetMoved(Uml::ID::Type id)
y = getMinY();
if (y > getMaxY())
y = getMaxY();
setY(y);
setPos(x(), y);
calculateWidget();
if(!m_pFText)
return;
......@@ -1104,8 +1104,7 @@ void MessageWidget::calculateDimensionsCreation()
}
x += 1;
widgetWidth -= 2;
setX(x);
setY(m_pOw[Uml::RoleType::B]->y() + m_pOw[Uml::RoleType::B]->height() / 2);
setPos(x, m_pOw[Uml::RoleType::B]->y() + m_pOw[Uml::RoleType::B]->height() / 2);
setSize(widgetWidth, widgetHeight);
}
......
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