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 c6f071c542
commit 498b68b8a3
1 changed files with 1 additions and 1 deletions

View File

@ -427,7 +427,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;