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:
parent
c7b7830495
commit
8afbe544a3
|
@ -1001,6 +1001,7 @@ void SCH_IO_ALTIUM::ParseComponent( int aIndex, const std::map<wxString, wxStrin
|
||||||
// component->SetOrientation( elem.orientation );
|
// component->SetOrientation( elem.orientation );
|
||||||
symbol->SetLibId( libId );
|
symbol->SetLibId( libId );
|
||||||
symbol->SetUnit( std::max( 0, elem.currentpartid ) );
|
symbol->SetUnit( std::max( 0, elem.currentpartid ) );
|
||||||
|
symbol->GetField( DESCRIPTION_FIELD )->SetText( elem.componentdescription );
|
||||||
|
|
||||||
SCH_SCREEN* screen = getCurrentScreen();
|
SCH_SCREEN* screen = getCurrentScreen();
|
||||||
wxCHECK( screen, /* void */ );
|
wxCHECK( screen, /* void */ );
|
||||||
|
|
Loading…
Reference in New Issue