Unify symbol browser/editor unit display

Fixes https://gitlab.com/kicad/code/kicad/issues/11881

(cherry picked from commit aeef5b00a8)
This commit is contained in:
Seth Hillbrand 2022-06-21 16:22:32 -07:00
parent 617755f991
commit 5cf346c233
1 changed files with 5 additions and 1 deletions

View File

@ -460,7 +460,11 @@ void SYMBOL_VIEWER_FRAME::onUpdateUnitChoice( wxUpdateUIEvent& aEvent )
m_unitChoice->Clear();
for( int ii = 0; ii < unit_count; ii++ )
m_unitChoice->Append( wxString::Format( _( "Unit %c" ), 'A' + ii ) );
{
wxString sub = LIB_SYMBOL::SubReference( ii + 1, false );
wxString unit = wxString::Format( _( "Unit %s" ), sub );
m_unitChoice->Append( unit );
}
}