mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 18:23:15 +02: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" ) ) );
|
xlibpart->AddChild( xfootprints = node( wxT( "footprints" ) ) );
|
||||||
|
|
||||||
for( unsigned i = 0; i < lcomp->GetFPFilters().GetCount(); ++i )
|
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 ----------------------------------
|
//----- show the fields here ----------------------------------
|
||||||
|
Loading…
x
Reference in New Issue
Block a user