From 2c60c4778eedd58db72b98497506d007fc8a2a35 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Thu, 13 Aug 2020 00:31:58 +0100 Subject: [PATCH] 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). --- pcbnew/pcb_expr_evaluator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcbnew/pcb_expr_evaluator.cpp b/pcbnew/pcb_expr_evaluator.cpp index fd053a93d1..8cb8e17563 100644 --- a/pcbnew/pcb_expr_evaluator.cpp +++ b/pcbnew/pcb_expr_evaluator.cpp @@ -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 testPoly;