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:
parent
d3f57fac5a
commit
5ec526fe4f
@ -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 ----------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user