Resolved issue #487. True dart point always goes to origin when the label is moved.

--HG--
branch : develop
This commit is contained in:
Valentina Zhuravska 2016-05-17 13:46:52 +03:00
parent c875930033
commit 0d8d9cb5e1
2 changed files with 3 additions and 8 deletions

View File

@ -22,6 +22,7 @@
- [#471] Add a 'Show/Hide' button for measurement diagram in Tape.
- [#478] Rename 'Print preview tiled' to 'Preview Tiled PDF'.
- [#472] Add 'Full Name' column to Formula dialog.
- [#487] True dart point always goes to origin when the label is moved.
# Version 0.4.5
- [#435] Valentina doesn't change the cursor.

View File

@ -183,10 +183,7 @@ void VToolDoublePoint::DoChangePosition(quint32 id, qreal mx, qreal my)
point->setMx(mx);
point->setMy(my);
VAbstractTool::data.UpdateGObject(p1id, point);
firstPoint->blockSignals(true);
firstPoint->setPos(QPointF(mx, my));
firstPoint->blockSignals(false);
RefreshLine(p1id);
firstPoint->RefreshGeometry(*point);
}
else if (id == p2id)
{
@ -194,10 +191,7 @@ void VToolDoublePoint::DoChangePosition(quint32 id, qreal mx, qreal my)
point->setMx(mx);
point->setMy(my);
VAbstractTool::data.UpdateGObject(p2id, point);
secondPoint->blockSignals(true);
secondPoint->setPos(QPointF(mx, my));
secondPoint->blockSignals(false);
RefreshLine(p2id);
secondPoint->RefreshGeometry(*point);
}
}