From d9d005190a6575ca9e32432254abf2f12d4eabdf Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Tue, 28 Aug 2018 09:49:11 +0200 Subject: [PATCH] Zone filler: fix a recent bug that forgot items on edge_cut when filling a copper zone. Fixes: lp:1789067 https://bugs.launchpad.net/kicad/+bug/ --- pcbnew/zone_filler.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pcbnew/zone_filler.cpp b/pcbnew/zone_filler.cpp index 6567f1facf..3cca62020a 100644 --- a/pcbnew/zone_filler.cpp +++ b/pcbnew/zone_filler.cpp @@ -527,7 +527,8 @@ void ZONE_FILLER::buildZoneFeatureHoleList( const ZONE_CONTAINER* aZone, */ auto doGraphicItem = [&]( BOARD_ITEM* aItem ) { - if( !aItem->IsOnLayer( aZone->GetLayer() ) ) + // A item on the Edge_Cuts is always seen as on any layer: + if( !aItem->IsOnLayer( aZone->GetLayer() ) && !aItem->IsOnLayer( Edge_Cuts ) ) return; if( !aItem->GetBoundingBox().Intersects( zone_boundingbox ) )