Honour aAllowExtraText flag in LIB_FIELD::GetShownText().

Fixes https://gitlab.com/kicad/code/kicad/-/issues/15470
This commit is contained in:
Jeff Young 2023-08-21 19:19:43 +01:00
parent 45963a3443
commit 00226ae40a
1 changed files with 1 additions and 1 deletions

View File

@ -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;