From 720462407993bc36d826fcee32473809f02821ab 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. --HG-- branch : release --- 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 4a74b0b05..533508117 100644 --- a/src/libs/vgeometry/vellipticalarc.cpp +++ b/src/libs/vgeometry/vellipticalarc.cpp @@ -280,7 +280,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()); @@ -298,10 +300,6 @@ QVector VEllipticalArc::GetPoints() const #else polygon = path.toSubpathPolygons().first(); // clazy:exclude=detaching-temporary #endif - if (not polygon.isEmpty()) - { - polygon.removeFirst(); // remove point (0;0) - } } return polygon;