Added partial selection for VIA class
This commit is contained in:
parent
a8e63924de
commit
8debf32079
|
@ -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 );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue