From 3544e5611e99a92ef35689acf56c1068e96729a6 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Sat, 12 Nov 2016 16:49:21 +0200 Subject: [PATCH] Fix seam allowance bug. Because of local seam allowance width bisector angles now can be not equal. Enough will be to check if they have a same direction. --HG-- branch : feature --- src/libs/vlayout/vabstractpiece.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/vlayout/vabstractpiece.cpp b/src/libs/vlayout/vabstractpiece.cpp index 4787c9893..6907634f3 100644 --- a/src/libs/vlayout/vabstractpiece.cpp +++ b/src/libs/vlayout/vabstractpiece.cpp @@ -361,7 +361,7 @@ QVector VAbstractPiece::EkvPoint(const VSAPoint &p1Line1, const VSAPoin const int angle1 = BisectorAngle(p1Line1, p2Line1, p1Line2); const int angle2 = BisectorAngle(bigLine1.p1(), CrosPoint, bigLine2.p2()); - if (angle1 == angle2) + if (qAbs(angle1 - angle2) < 180)// Go in a same direction {//Regular equdistant case const qreal length = line.length(); if (length > width*2.4)