SCH_PIN::GetMsgPanelInfo(): fix missing initialization of Pin Number string

The displayed string was a old value, not related to the Pin Nummber
Fixes #7414
https://gitlab.com/kicad/code/kicad/issues/7414
This commit is contained in:
jean-pierre charras 2021-02-04 11:14:46 +01:00
parent 0de3d48db5
commit 658a5cf7ed
1 changed files with 1 additions and 0 deletions

View File

@ -175,6 +175,7 @@ void SCH_PIN::GetMsgPanelInfo( EDA_DRAW_FRAME* aFrame, MSG_PANEL_ITEMS& aList )
aList.push_back( MSG_PANEL_ITEM( _( "Converted" ), msg ) ); aList.push_back( MSG_PANEL_ITEM( _( "Converted" ), msg ) );
aList.push_back( MSG_PANEL_ITEM( _( "Name" ), GetName() ) ); aList.push_back( MSG_PANEL_ITEM( _( "Name" ), GetName() ) );
msg = GetNumber().IsEmpty() ? wxT( "?" ) : GetNumber();
aList.push_back( MSG_PANEL_ITEM( _( "Number" ), msg ) ); aList.push_back( MSG_PANEL_ITEM( _( "Number" ), msg ) );
aList.push_back( MSG_PANEL_ITEM( _( "Type" ), ElectricalPinTypeGetText( GetType() ) ) ); aList.push_back( MSG_PANEL_ITEM( _( "Type" ), ElectricalPinTypeGetText( GetType() ) ) );