Correctly handle footprint graphic knockouts for no-net case

Fixes https://gitlab.com/kicad/code/kicad/-/issues/17223


(cherry picked from commit ed18a9bcc2)
This commit is contained in:
Jon Evans 2024-03-02 15:39:07 -05:00
parent 4dc4b2bd51
commit 13fabb0564
1 changed files with 1 additions and 1 deletions

View File

@ -1177,7 +1177,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 );