Fix seam allowance bug. Speacial "dart" case.

--HG--
branch : feature
This commit is contained in:
Roman Telezhynskyi 2016-11-16 11:16:16 +02:00
parent 98dad0fb72
commit cf5afffd60

View File

@ -438,8 +438,11 @@ QVector<QPointF> VAbstractPiece::EkvPoint(const VSAPoint &p1Line1, const VSAPoin
const QLineF::IntersectType type = bigEdge.intersect(line, &px); const QLineF::IntersectType type = bigEdge.intersect(line, &px);
if (type != QLineF::BoundedIntersection) if (type != QLineF::BoundedIntersection)
{ {
points.append(CrosPoint); if (line.length() < QLineF(p2Line1, px).length())
return points; {
points.append(CrosPoint);
return points;
}
} }
} }
else else