Fixed GetPoints in VEllipticalArc

--HG--
branch : feature
This commit is contained in:
Valentina Zhuravska 2016-02-24 17:34:33 +02:00
parent 06637f2103
commit 389504b548

View File

@ -288,13 +288,6 @@ QVector<QPointF> VEllipticalArc::GetPoints() const
QVector<QPointF> points;
QVector<qreal> sectionAngle = GetAngles();
// if angle1 == angle2 and we have just one point of arc
if(sectionAngle.size() == 1)
{
points.append(GetP1());
}
else
{
qreal currentAngle;
d->isFlipped ? currentAngle = GetEndAngle() : currentAngle = GetStartAngle();
for (int i = 0; i < sectionAngle.size(); ++i)
@ -319,7 +312,6 @@ QVector<QPointF> VEllipticalArc::GetPoints() const
points << splPoints;
currentAngle += sectionAngle.at(i);
}
}
return points;
}