From 1394204c65bc95a4c51f4f2ecc54da82ecb08e99 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Wed, 17 Apr 2024 17:55:02 +0300 Subject: [PATCH] Changing curved path settings should not trigger visibility of control points. --- src/libs/vwidgets/vcontrolpointspline.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/vwidgets/vcontrolpointspline.cpp b/src/libs/vwidgets/vcontrolpointspline.cpp index 69ad6b1fe..51c38814f 100644 --- a/src/libs/vwidgets/vcontrolpointspline.cpp +++ b/src/libs/vwidgets/vcontrolpointspline.cpp @@ -82,10 +82,10 @@ VControlPointSpline::VControlPointSpline(const vsizetype &indexSpline, SplinePoi { Init(); + this->setPos(controlPoint); this->setFlag(QGraphicsItem::ItemIsMovable, true); this->setFlag(QGraphicsItem::ItemSendsGeometryChanges, true); this->setAcceptHoverEvents(true); - this->setPos(controlPoint); // Do not draw control point in constructor. It creates artefacts if they enabled from start. }