Fix incorrect HitTest in DRAWSEGMENT (bezier curve)

This commit is contained in:
jean-pierre charras 2019-11-05 16:17:56 +01:00
parent 5f3353cad1
commit 52fcbeab44
1 changed files with 1 additions and 1 deletions

View File

@ -657,7 +657,7 @@ bool DRAWSEGMENT::HitTest( const wxPoint& aPosition, int aAccuracy ) const
for( unsigned int i= 1; i < m_BezierPoints.size(); i++)
{
if( TestSegmentHit( aPosition, m_BezierPoints[i-1], m_BezierPoints[i-1], maxdist ) )
if( TestSegmentHit( aPosition, m_BezierPoints[i-1], m_BezierPoints[i], maxdist ) )
return true;
}
break;