7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-20 21:11:43 +00:00

Don't write out empty footprint filters.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/20394
This commit is contained in:
Jeff Young 2025-03-20 09:59:50 +00:00
parent d3f57fac5a
commit 5ec526fe4f

View File

@ -665,7 +665,10 @@ XNODE* NETLIST_EXPORTER_XML::makeLibParts()
xlibpart->AddChild( xfootprints = node( wxT( "footprints" ) ) );
for( unsigned i = 0; i < lcomp->GetFPFilters().GetCount(); ++i )
xfootprints->AddChild( node( wxT( "fp" ), lcomp->GetFPFilters()[i] ) );
{
if( !lcomp->GetFPFilters()[i].IsEmpty() )
xfootprints->AddChild( node( wxT( "fp" ), lcomp->GetFPFilters()[i] ) );
}
}
//----- show the fields here ----------------------------------