Fix bug with angle by intersection.

Was used wrong point bigLine2.p2() instead of bigLine2.p1().

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2019-08-31 15:30:07 +03:00
parent 833a092b27
commit d12070b146

View File

@ -224,15 +224,12 @@ QVector<QPointF> AngleByIntersection(const QVector<QPointF> &points, QPointF p1,
}
else
{
QLineF allowance(p2, px);
//allowance.setLength(allowance.length()-accuracyPointOnLine*2.);
//allowance.setAngle(allowance.angle()-0.1); // avoid optimization
pointsIntr.append(allowance.p2());
pointsIntr.append(px);
//allowance = QLineF(p2, px);
QLineF allowance(p2, px);
allowance.setLength(allowance.length() + localWidth * 3.);
pointsIntr.append(allowance.p2());
pointsIntr.append(bigLine2.p2());
pointsIntr.append(bigLine2.p1());
}
return pointsIntr;