Adjusted selection for ZONE

This commit is contained in:
Oliver Walters 2017-05-02 17:14:07 +10:00 committed by Maciej Suminski
parent 9c80d63b5c
commit c8fe9ffa79
1 changed files with 4 additions and 0 deletions

View File

@ -563,11 +563,14 @@ bool ZONE_CONTAINER::HitTest( const EDA_RECT& aRect, bool aContained, int aAccur
// and can intersect the polygon: use a fine test.
// aBox intersects the polygon if at least one aBox corner
// is inside the polygon
/*
wxPoint origin = arect.GetOrigin();
int w = arect.GetWidth();
int h = arect.GetHeight();
if ( HitTestInsideZone( origin ) ||
HitTestInsideZone( origin + wxPoint( w, 0 ) ) ||
HitTestInsideZone( origin + wxPoint( w, h ) ) ||
@ -575,6 +578,7 @@ bool ZONE_CONTAINER::HitTest( const EDA_RECT& aRect, bool aContained, int aAccur
{
return true;
}
*/
// No corner inside aBox, but outlines can intersect aBox
// if one of outline corners is inside aBox