diff --git a/pcbnew/class_track.cpp b/pcbnew/class_track.cpp index 0b31d1c589..f5a0e89c89 100644 --- a/pcbnew/class_track.cpp +++ b/pcbnew/class_track.cpp @@ -883,9 +883,7 @@ bool TRACK::HitTest( const EDA_RECT& aRect, bool aContained, int aAccuracy ) con arect.Inflate( aAccuracy ); if( aContained ) - /* Tracks are a special case: - * they are considered inside the rect if one end is inside the rect */ - return arect.Contains( GetStart() ) || arect.Contains( GetEnd() ); + return arect.Contains( GetStart() ) && arect.Contains( GetEnd() ); else return arect.Intersects( GetStart(), GetEnd() ); }