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.
From master branch
This commit is contained in:
jean-pierre charras 2022-09-07 17:13:04 +02:00
parent 030a562ba6
commit f06f205886
1 changed files with 3 additions and 0 deletions

View File

@ -107,6 +107,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( "_" ) );