Do not send geometry changes when set control point line. ref #842.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2018-05-08 12:06:40 +03:00
parent b1d33aa2c6
commit 56780fa337

View File

@ -276,8 +276,10 @@ void VControlPointSpline::SetCtrlLine(const QPointF &controlPoint, const QPointF
VGObject::LineIntersectCircle(QPointF(), ScaledRadius(SceneScale(scene())),
QLineF( QPointF(), splinePoint-controlPoint), p1, p2);
QLineF line(splinePoint-controlPoint, p1);
controlLine->setFlag(QGraphicsItem::ItemSendsGeometryChanges, false);
controlLine->setLine(line);
controlLine->setVisible(not line.isNull());
controlLine->setFlag(QGraphicsItem::ItemSendsGeometryChanges, true);
}
//---------------------------------------------------------------------------------------------------------------------