Make it easier to select keepouts

This commit is contained in:
Jon Evans 2020-06-29 20:37:57 -04:00
parent 8a0277eb2e
commit 49c7ba6724
1 changed files with 5 additions and 0 deletions

View File

@ -541,6 +541,11 @@ int ZONE_CONTAINER::GetLocalClearance( wxString* aSource ) const
bool ZONE_CONTAINER::HitTestFilledArea( PCB_LAYER_ID aLayer, const wxPoint& aRefPos ) const
{
// Keepouts have no filled area, but it's generally nice to treat their interior as if it were
// filled so that people don't have to select keepouts by their outline (which is min-width)
if( GetIsKeepout() )
return m_Poly->Contains( VECTOR2I( aRefPos.x, aRefPos.y ) );
if( !m_FilledPolysList.count( aLayer ) )
return false;