From 948d3848683191ec13f8b8d5f0154cf18896f15b Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Thu, 19 May 2016 15:13:38 +0300 Subject: [PATCH] Fixed moving labels. --HG-- branch : feature --- .../tools/drawTools/operation/vtoolrotation.cpp | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/libs/vtools/tools/drawTools/operation/vtoolrotation.cpp b/src/libs/vtools/tools/drawTools/operation/vtoolrotation.cpp index 2e8dcb0df..9269ea5eb 100644 --- a/src/libs/vtools/tools/drawTools/operation/vtoolrotation.cpp +++ b/src/libs/vtools/tools/drawTools/operation/vtoolrotation.cpp @@ -725,12 +725,6 @@ void VToolRotation::LabelChangePosition(const QPointF &pos, quint32 labelId) SCASSERT(item != nullptr); ChangePosition(item, labelId, pos); } - else - { - VSimpleCurve *item = qobject_cast(obj); - SCASSERT(item != nullptr); - ChangePosition(item, labelId, pos); - } } } @@ -814,10 +808,7 @@ void VToolRotation::DoChangePosition(quint32 id, qreal mx, qreal my) VSimplePoint *item = qobject_cast(rObjects.value(id)); SCASSERT(item != nullptr); - item->blockSignals(true); - item->setPos(QPointF(mx, my)); - item->blockSignals(false); - item->RefreshLine(); + item->RefreshGeometry(*point); } }