Suppress "File: " when we're showing the Sheetfile field name.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/15637
This commit is contained in:
Jeff Young 2023-10-07 10:40:53 +01:00
parent b4986030da
commit 4d0ee276e8
1 changed files with 2 additions and 2 deletions

View File

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