7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-21 00:21:25 +00:00

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

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();