IPC-2581: Do not create an empty Bom node

This commit is contained in:
Jon Evans 2023-12-06 17:16:15 -05:00
parent 9fcff5e701
commit 855486f849
1 changed files with 3 additions and 0 deletions

View File

@ -1223,6 +1223,9 @@ wxXmlNode* IPC2581_PLUGIN::generateBOMSection( wxXmlNode* aEcadNode )
}
}
if( bom_entries.empty() )
return nullptr;
wxFileName fn( m_board->GetFileName() );
wxXmlNode* bomNode = new wxXmlNode( wxXML_ELEMENT_NODE, "Bom" );