Honour aAllowExtraText flag in LIB_FIELD::GetShownText().
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15470
This commit is contained in:
parent
c6f071c542
commit
498b68b8a3
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue