From 46cd185524633bd886bb3a4d26acce62b926ea89 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Tue, 5 Nov 2019 16:21:45 +0100 Subject: [PATCH] Fix incorrect HitTest in DRAWSEGMENT (bezier curve) --- pcbnew/class_drawsegment.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcbnew/class_drawsegment.cpp b/pcbnew/class_drawsegment.cpp index 1660692efb..9f6a905a46 100644 --- a/pcbnew/class_drawsegment.cpp +++ b/pcbnew/class_drawsegment.cpp @@ -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;