CADSTAR: use pin labels if pin names are not available.

This commit is contained in:
Alex Shvartzkop 2023-10-15 05:49:07 +03:00
parent c7daf511bc
commit 77eaf252e2
1 changed files with 2 additions and 0 deletions

View File

@ -160,6 +160,8 @@ CADSTAR_SCH_ARCHIVE_LOADER::loadLibPart( const CADSTAR_PART_ENTRY& aPart )
if( aPart.m_PinNamesMap.count( termID ) ) if( aPart.m_PinNamesMap.count( termID ) )
pin->SetName( HandleTextOverbar( aPart.m_PinNamesMap.at( termID ) ) ); pin->SetName( HandleTextOverbar( aPart.m_PinNamesMap.at( termID ) ) );
else if( aPart.m_PinLabelsMap.count( termID ) )
pin->SetName( HandleTextOverbar( aPart.m_PinLabelsMap.at( termID ) ) );
pin->SetType( getKiCadPinType( sym.m_Pins[termIdx].m_Type ) ); pin->SetType( getKiCadPinType( sym.m_Pins[termIdx].m_Type ) );