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
This commit is contained in:
Roman Telezhynskyi 2016-11-12 16:49:21 +02:00
parent 585bfec12f
commit 3544e5611e

View file

@ -361,7 +361,7 @@ QVector<QPointF> 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)