Method VAbstractCurve::IsPointOnCurve use QPoint instead QPointF for more
accurate result. --HG-- branch : feature
This commit is contained in:
parent
1a9af78bef
commit
314ae2eb4c
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user