From 680e66c4cd4e6b1f52572e257f29f24940cec77d Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Fri, 10 Jan 2020 13:44:27 +0200 Subject: [PATCH] Fixed issue #989. Elliptical arc tool not behaving correctly. (grafted from 09f4c4e0d4a44df54dd7d3267b7c7922a2c150aa) --HG-- branch : develop --- src/libs/vgeometry/vellipticalarc.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/libs/vgeometry/vellipticalarc.cpp b/src/libs/vgeometry/vellipticalarc.cpp index ed9eb22e6..6accc9b30 100644 --- a/src/libs/vgeometry/vellipticalarc.cpp +++ b/src/libs/vgeometry/vellipticalarc.cpp @@ -279,7 +279,9 @@ QVector VEllipticalArc::GetPoints() const } QPainterPath path; + path.moveTo(GetP1()); path.arcTo(box, VAbstractArc::GetStartAngle(), sweepAngle); + path.moveTo(GetP2()); QTransform t = d->m_transform; t.translate(center.x(), center.y()); @@ -293,10 +295,6 @@ QVector VEllipticalArc::GetPoints() const if (not sub.isEmpty()) { polygon = ConstFirst (path.toSubpathPolygons()); - if (not polygon.isEmpty()) - { - polygon.removeFirst(); // remove point (0;0) - } } return static_cast>(polygon);