From f8b02e7f40ea3bf6cc1c32ff7a3bc876c0867d17 Mon Sep 17 00:00:00 2001 From: dismine Date: Fri, 21 Nov 2014 09:54:12 +0200 Subject: [PATCH] Fixed issue #192. Cannot create circled part. --HG-- branch : develop --- src/app/geometry/varc.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/app/geometry/varc.cpp b/src/app/geometry/varc.cpp index cf195f9b2..83546cfa3 100644 --- a/src/app/geometry/varc.cpp +++ b/src/app/geometry/varc.cpp @@ -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);