Set description on Altium imported symbols

Fixes https://gitlab.com/kicad/code/kicad/-/issues/16943


(cherry picked from commit 4bc69183ab)
This commit is contained in:
Jon Evans 2024-03-05 23:08:11 -05:00
parent c7b7830495
commit 8afbe544a3
1 changed files with 1 additions and 0 deletions

View File

@ -1001,6 +1001,7 @@ void SCH_IO_ALTIUM::ParseComponent( int aIndex, const std::map<wxString, wxStrin
// component->SetOrientation( elem.orientation );
symbol->SetLibId( libId );
symbol->SetUnit( std::max( 0, elem.currentpartid ) );
symbol->GetField( DESCRIPTION_FIELD )->SetText( elem.componentdescription );
SCH_SCREEN* screen = getCurrentScreen();
wxCHECK( screen, /* void */ );