Fix visualization for tool Point from circle and tangent.

This commit is contained in:
Roman Telezhynskyi 2022-09-16 18:47:32 +03:00
parent 851e8cf5e5
commit 7d6ad602f5
3 changed files with 4 additions and 2 deletions

View File

@ -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.

View File

@ -47,7 +47,8 @@
VisToolPointFromCircleAndTangent::VisToolPointFromCircleAndTangent(const VContainer *data, QGraphicsItem *parent)
: VisLine(data, parent)
{
m_cPath = InitItem<QGraphicsEllipseItem>(Qt::darkGreen, this);
m_cPath = InitItem<VScaledEllipse>(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

View File

@ -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};