Honour aAllowExtraText flag in LIB_FIELD::GetShownText().
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15470
This commit is contained in:
parent
45963a3443
commit
00226ae40a
|
@ -415,7 +415,7 @@ wxString LIB_FIELD::GetShownText( bool aAllowExtraText, int aDepth ) const
|
||||||
{
|
{
|
||||||
wxString text = EDA_TEXT::GetShownText( aAllowExtraText, aDepth );
|
wxString text = EDA_TEXT::GetShownText( aAllowExtraText, aDepth );
|
||||||
|
|
||||||
if( IsNameShown() )
|
if( IsNameShown() && aAllowExtraText )
|
||||||
text = GetName() << wxT( ": " ) << text;
|
text = GetName() << wxT( ": " ) << text;
|
||||||
|
|
||||||
return text;
|
return text;
|
||||||
|
|
Loading…
Reference in New Issue