Fix float point accuracy issue. ref #883.

--HG--
branch : release
This commit is contained in:
Roman Telezhynskyi 2018-09-19 12:24:24 +03:00
parent 26d79e5ca2
commit ec79f50e65

View File

@ -41,11 +41,9 @@ const qreal maxL = 2.5;
namespace
{
// Do we create a point outside of a path?
bool IsOutsidePoint(QPointF p1, QPointF p2, QPointF px)
inline bool IsOutsidePoint(QPointF p1, QPointF p2, QPointF px)
{
QLineF line(p1, p2);
QLineF ext(p1, px);
return VFuzzyComparePossibleNulls(line.angle(), ext.angle());
return qAbs(QLineF(p1, p2).angle() - QLineF(p1, px).angle()) < 0.001;
}
//---------------------------------------------------------------------------------------------------------------------