Fix incorrect HitTest in DRAWSEGMENT (bezier curve)

This commit is contained in:
jean-pierre charras 2019-11-05 16:21:45 +01:00
parent e04d82e940
commit 46cd185524
1 changed files with 1 additions and 1 deletions

View File

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