Fixed issue #989. Elliptical arc tool not behaving correctly.
--HG-- branch : release
This commit is contained in:
parent
05425a07cc
commit
7204624079
|
@ -280,7 +280,9 @@ QVector<QPointF> VEllipticalArc::GetPoints() const
|
||||||
}
|
}
|
||||||
|
|
||||||
QPainterPath path;
|
QPainterPath path;
|
||||||
|
path.moveTo(GetP1());
|
||||||
path.arcTo(box, VAbstractArc::GetStartAngle(), sweepAngle);
|
path.arcTo(box, VAbstractArc::GetStartAngle(), sweepAngle);
|
||||||
|
path.moveTo(GetP2());
|
||||||
|
|
||||||
QTransform t = d->m_transform;
|
QTransform t = d->m_transform;
|
||||||
t.translate(center.x(), center.y());
|
t.translate(center.x(), center.y());
|
||||||
|
@ -298,10 +300,6 @@ QVector<QPointF> VEllipticalArc::GetPoints() const
|
||||||
#else
|
#else
|
||||||
polygon = path.toSubpathPolygons().first(); // clazy:exclude=detaching-temporary
|
polygon = path.toSubpathPolygons().first(); // clazy:exclude=detaching-temporary
|
||||||
#endif
|
#endif
|
||||||
if (not polygon.isEmpty())
|
|
||||||
{
|
|
||||||
polygon.removeFirst(); // remove point (0;0)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return polygon;
|
return polygon;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user