Suppress "File: " when we're showing the Sheetfile field name.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15637
This commit is contained in:
parent
b4986030da
commit
4d0ee276e8
|
@ -248,8 +248,8 @@ wxString SCH_FIELD::GetShownText( const SCH_SHEET_PATH* aPath, bool aAllowExtraT
|
|||
}
|
||||
else if( m_parent && m_parent->Type() == SCH_SHEET_T )
|
||||
{
|
||||
if( m_id == SHEETFILENAME && aAllowExtraText )
|
||||
text = _( "File:" ) + wxS( " " )+ text;
|
||||
if( m_id == SHEETFILENAME && aAllowExtraText && !IsNameShown() )
|
||||
text = _( "File:" ) + wxS( " " ) + text;
|
||||
}
|
||||
|
||||
return text;
|
||||
|
|
Loading…
Reference in New Issue