orcadpcb2 netlist export: fix an issue with duplicated pins in multi-unit symbols.

Due to some changes in code, pins common to units were written more than once.
This commit is contained in:
jean-pierre charras 2022-09-07 17:13:04 +02:00
parent 89310bc403
commit 8b96e6fa44
1 changed files with 3 additions and 0 deletions

View File

@ -108,6 +108,9 @@ bool NETLIST_EXPORTER_ORCADPCB2::WriteNetlist( const wxString& aOutFileName,
// Write pin list:
for( const PIN_INFO& pin : m_sortedSymbolPinList )
{
if( pin.num.IsEmpty() ) // Erased pin in list
continue;
netName = pin.netName;
netName.Replace( wxT( " " ), wxT( "_" ) );