7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-18 15:59:17 +00:00

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

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;