Added partial selection for VIA class

This commit is contained in:
Oliver Walters 2017-07-03 20:36:22 +10:00 committed by Maciej Suminski
parent a8e63924de
commit 8debf32079
1 changed files with 5 additions and 1 deletions

View File

@ -1319,9 +1319,13 @@ bool VIA::HitTest( const EDA_RECT& aRect, bool aContained, int aAccuracy ) const
box.Inflate( GetWidth() / 2 );
if( aContained )
{
return arect.Contains( box );
}
else
return arect.Intersects( box );
{
return arect.IntersectsCircle( GetStart(), GetWidth() / 2 );
}
}