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:
parent
617755f991
commit
5cf346c233
|
@ -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 );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue