From 56780fa337eb93b00cfcff97adacb0ee2130221e Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Tue, 8 May 2018 12:06:40 +0300 Subject: [PATCH] Do not send geometry changes when set control point line. ref #842. --HG-- branch : develop --- src/libs/vwidgets/vcontrolpointspline.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libs/vwidgets/vcontrolpointspline.cpp b/src/libs/vwidgets/vcontrolpointspline.cpp index 2edab8a69..e9c7ebedf 100644 --- a/src/libs/vwidgets/vcontrolpointspline.cpp +++ b/src/libs/vwidgets/vcontrolpointspline.cpp @@ -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); } //---------------------------------------------------------------------------------------------------------------------