From 00226ae40af29d9e3f6b541af9650b9113d149ce Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Mon, 21 Aug 2023 19:19:43 +0100 Subject: [PATCH] Honour aAllowExtraText flag in LIB_FIELD::GetShownText(). Fixes https://gitlab.com/kicad/code/kicad/-/issues/15470 --- eeschema/lib_field.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eeschema/lib_field.cpp b/eeschema/lib_field.cpp index 1377670b16..3206789eeb 100644 --- a/eeschema/lib_field.cpp +++ b/eeschema/lib_field.cpp @@ -415,7 +415,7 @@ wxString LIB_FIELD::GetShownText( bool aAllowExtraText, int aDepth ) const { wxString text = EDA_TEXT::GetShownText( aAllowExtraText, aDepth ); - if( IsNameShown() ) + if( IsNameShown() && aAllowExtraText ) text = GetName() << wxT( ": " ) << text; return text;