Method VAbstractCurve::IsPointOnCurve use QPoint instead QPointF for more

accurate result.

--HG--
branch : feature
This commit is contained in:
Roman Telezhynskyi 2016-11-13 20:11:00 +02:00
parent 1a9af78bef
commit 314ae2eb4c

View File

@ -253,7 +253,7 @@ bool VAbstractCurve::IsPointOnCurve(const QPointF &p) const
{
for (qint32 i = 0; i < points.count()-1; ++i)
{
if (IsPointOnLineSegment(p, points.at(i), points.at(i+1)))
if (IsPointOnLineSegment(p.toPoint(), points.at(i).toPoint(), points.at(i+1).toPoint()))
{
return true;
}