Make tracks respond to stingy selections like everything else.

Fixes https://gitlab.com/kicad/code/kicad/issues/5332
This commit is contained in:
Jeff Young 2020-08-25 20:10:25 +01:00
parent 996ea4d5f9
commit b863beaaf6
1 changed files with 1 additions and 3 deletions

View File

@ -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() );
}