Correctly handle footprint graphic knockouts for no-net case

Fixes https://gitlab.com/kicad/code/kicad/-/issues/17223
This commit is contained in:
Jon Evans 2024-03-02 15:39:07 -05:00
parent 3a3ceb8ffc
commit ed18a9bcc2
1 changed files with 1 additions and 1 deletions

View File

@ -1181,7 +1181,7 @@ void ZONE_FILLER::buildCopperItemClearances( const ZONE* aZone, PCB_LAYER_ID aLa
{ {
for( PAD* pad : footprint->Pads() ) for( PAD* pad : footprint->Pads() )
{ {
if( pad->GetNetCode() == aZone->GetNetCode() ) if( pad->GetNetCode() == aZone->GetNetCode() && aZone->GetNetCode() != 0 )
{ {
if( pad->IsOnLayer( aLayer ) ) if( pad->IsOnLayer( aLayer ) )
allowedNetTiePads.insert( pad ); allowedNetTiePads.insert( pad );