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/
This commit is contained in:
jean-pierre charras
2018-08-28 09:49:11 +02:00
parent 089f27f485
commit d9d005190a
+2 -1
View File
@@ -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 ) )