Do a layer-specific test only if the zone has the layer we're on.

Otherwise do a outline test (ie: for a keepout which isn't
layer-specific).
This commit is contained in:
Jeff Young 2020-08-13 00:31:58 +01:00
parent 518a659185
commit 2c60c4778e
1 changed files with 1 additions and 1 deletions

View File

@ -183,7 +183,7 @@ static void insideArea( LIBEVAL::CONTEXT* aCtx, void* self )
} }
} }
if( zone ) if( zone && zone->GetLayerSet().test( context->GetLayer() ) )
{ {
SHAPE_POLY_SET zonePoly = zone->GetFilledPolysList( context->GetLayer() ); SHAPE_POLY_SET zonePoly = zone->GetFilledPolysList( context->GetLayer() );
SHAPE_POLY_SET testPoly; SHAPE_POLY_SET testPoly;