From ed18a9bcc22005533f099f4371998daaba3273b5 Mon Sep 17 00:00:00 2001 From: Jon Evans Date: Sat, 2 Mar 2024 15:39:07 -0500 Subject: [PATCH] Correctly handle footprint graphic knockouts for no-net case Fixes https://gitlab.com/kicad/code/kicad/-/issues/17223 --- pcbnew/zone_filler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcbnew/zone_filler.cpp b/pcbnew/zone_filler.cpp index f5c621bb73..24bd06976e 100644 --- a/pcbnew/zone_filler.cpp +++ b/pcbnew/zone_filler.cpp @@ -1181,7 +1181,7 @@ void ZONE_FILLER::buildCopperItemClearances( const ZONE* aZone, PCB_LAYER_ID aLa { for( PAD* pad : footprint->Pads() ) { - if( pad->GetNetCode() == aZone->GetNetCode() ) + if( pad->GetNetCode() == aZone->GetNetCode() && aZone->GetNetCode() != 0 ) { if( pad->IsOnLayer( aLayer ) ) allowedNetTiePads.insert( pad );