From 5cf346c2337a47614ea742b3e1d546092ba1b5a9 Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Tue, 21 Jun 2022 16:22:32 -0700 Subject: [PATCH] Unify symbol browser/editor unit display Fixes https://gitlab.com/kicad/code/kicad/issues/11881 (cherry picked from commit aeef5b00a8c88cfa8377e3f671146d74333d2a1f) --- eeschema/symbol_viewer_frame.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/eeschema/symbol_viewer_frame.cpp b/eeschema/symbol_viewer_frame.cpp index 3028990991..68e5367135 100644 --- a/eeschema/symbol_viewer_frame.cpp +++ b/eeschema/symbol_viewer_frame.cpp @@ -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 ); + } }