From 7d6ad602f53403506164ffd8c0ba17bf04fb8cac Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Fri, 16 Sep 2022 18:47:32 +0300 Subject: [PATCH] Fix visualization for tool Point from circle and tangent. --- ChangeLog.txt | 1 + .../visualization/line/vistoolpointfromcircleandtangent.cpp | 3 ++- .../visualization/line/vistoolpointfromcircleandtangent.h | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ChangeLog.txt b/ChangeLog.txt index 76fe3e4d0..8584b8833 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -1,5 +1,6 @@ # Valentina 0.7.53 (unreleased) - Fix layout sheet export with empty name. +- Fix visualization for tool Point from circle and tangent. # Valentina 0.7.52 September 12, 2022 - Fix crash when default locale is ru. diff --git a/src/libs/vtools/visualization/line/vistoolpointfromcircleandtangent.cpp b/src/libs/vtools/visualization/line/vistoolpointfromcircleandtangent.cpp index d8f47b308..822bd9422 100644 --- a/src/libs/vtools/visualization/line/vistoolpointfromcircleandtangent.cpp +++ b/src/libs/vtools/visualization/line/vistoolpointfromcircleandtangent.cpp @@ -47,7 +47,8 @@ VisToolPointFromCircleAndTangent::VisToolPointFromCircleAndTangent(const VContainer *data, QGraphicsItem *parent) : VisLine(data, parent) { - m_cPath = InitItem(Qt::darkGreen, this); + m_cPath = InitItem(Qt::darkGreen, this); + m_cPath->SetPointMode(false); m_point = InitPoint(Color(VColor::MainColor), this); m_tangent = InitPoint(Color(VColor::SupportColor), this); m_cCenter = InitPoint(Color(VColor::SupportColor), this); //-V656 diff --git a/src/libs/vtools/visualization/line/vistoolpointfromcircleandtangent.h b/src/libs/vtools/visualization/line/vistoolpointfromcircleandtangent.h index 1286c64cb..ec53e7631 100644 --- a/src/libs/vtools/visualization/line/vistoolpointfromcircleandtangent.h +++ b/src/libs/vtools/visualization/line/vistoolpointfromcircleandtangent.h @@ -67,7 +67,7 @@ private: VScaledEllipse *m_point{nullptr}; VScaledEllipse *m_tangent{nullptr}; VScaledEllipse *m_cCenter{nullptr}; - QGraphicsEllipseItem *m_cPath{nullptr}; + VScaledEllipse *m_cPath{nullptr}; VScaledLine *m_tangent2{nullptr}; quint32 m_pointId{NULL_ID};