Commit b410ab72 authored by Ralf Habacker's avatar Ralf Habacker

Fix 'Moving several objects does not move lines between them'.

In multi select case it is required to move the start and end point
of the related association line too.

BUG:372107
FIXED-IN:2.20.3 (KDE Applications 16.08.3)
parent fb02f39c
......@@ -3928,6 +3928,13 @@ void AssociationWidget::moveEntireAssoc(qreal x, qreal y)
{
//TODO: ADD SUPPORT FOR ASSOC. ON SEQ. DIAGRAMS WHEN NOTES BACK IN.
moveMidPointsBy(x, y);
// multi select
if (umlScene()->selectedCount() > 1) {
QPointF d(x, y);
QPointF s = m_associationLine->startPoint() + d;
QPointF e = m_associationLine->endPoint() + d;
m_associationLine->setEndPoints(s, e);
}
calculateEndingPoints();
calculateNameTextSegment();
resetTextPositions();
......
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