Try to fix test on Windows.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2017-02-12 13:20:41 +02:00
parent a800a01308
commit 77aa8e6f0e

View file

@ -488,7 +488,8 @@ bool VGObject::IsPointOnLineviaPDP(const QPointF &t, const QPointF &p1, const QP
{
const auto p = qAbs(PerpDotProduct(p1, p2, t));
const auto e = GetEpsilon(p1, p2);
return p <= e;
// We can't use common "<=" here because of the floating-point accuraccy problem
return p < e || VFuzzyComparePossibleNulls(p, e);
}
//---------------------------------------------------------------------------------------------------------------------