Fixed issue #192. Cannot create circled part.

--HG--
branch : develop
This commit is contained in:
dismine 2014-11-21 09:54:12 +02:00
parent 9085238753
commit f8b02e7f40

View File

@ -144,6 +144,11 @@ QPointF VArc::GetP2 () const
*/
qreal VArc::AngleArc() const
{
if ((qFuzzyCompare(d->f1+1, 0+1) && qFuzzyCompare(d->f2, 360)) ||
(qFuzzyCompare(d->f1, 360) && qFuzzyCompare(d->f2+1, 0+1)))
{
return 360;
}
QLineF l1(0, 0, 100, 100);
l1.setAngle(d->f1);
QLineF l2(0, 0, 100, 100);