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 );
|
box.Inflate( GetWidth() / 2 );
|
||||||
|
|
||||||
if( aContained )
|
if( aContained )
|
||||||
|
{
|
||||||
return arect.Contains( box );
|
return arect.Contains( box );
|
||||||
|
}
|
||||||
else
|
else
|
||||||
return arect.Intersects( box );
|
{
|
||||||
|
return arect.IntersectsCircle( GetStart(), GetWidth() / 2 );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue