Eeschema: fix for root sheet plot filename, in non English languages.

This commit is contained in:
jean-pierre charras 2019-06-20 17:00:06 +02:00
parent 3bd2b7762a
commit e1a2cbbea1
1 changed files with 2 additions and 1 deletions

View File

@ -602,7 +602,8 @@ wxString SCH_EDIT_FRAME::GetUniqueFilenameForCurrentSheet()
wxString filename = fn.GetName();
wxString sheetFullName = g_CurrentSheet->PathHumanReadable();
if( sheetFullName == "<root sheet>" )
if( sheetFullName == "<root sheet>" || sheetFullName == _( "<root sheet>" ) ||
sheetFullName == "/" )
{
// For the root sheet, use root schematic file name.
sheetFullName.clear();