Fixed GetPoints in VEllipticalArc
--HG-- branch : feature
This commit is contained in:
parent
06637f2103
commit
389504b548
|
@ -288,13 +288,6 @@ QVector<QPointF> VEllipticalArc::GetPoints() const
|
||||||
QVector<QPointF> points;
|
QVector<QPointF> points;
|
||||||
QVector<qreal> sectionAngle = GetAngles();
|
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;
|
qreal currentAngle;
|
||||||
d->isFlipped ? currentAngle = GetEndAngle() : currentAngle = GetStartAngle();
|
d->isFlipped ? currentAngle = GetEndAngle() : currentAngle = GetStartAngle();
|
||||||
for (int i = 0; i < sectionAngle.size(); ++i)
|
for (int i = 0; i < sectionAngle.size(); ++i)
|
||||||
|
@ -319,7 +312,6 @@ QVector<QPointF> VEllipticalArc::GetPoints() const
|
||||||
points << splPoints;
|
points << splPoints;
|
||||||
currentAngle += sectionAngle.at(i);
|
currentAngle += sectionAngle.at(i);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
return points;
|
return points;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user