Eeschema: minor fix for root sheet plot file name.

Fixes: lp:1833487
https://bugs.launchpad.net/kicad/+bug/1833487
This commit is contained in:
jean-pierre charras 2019-06-20 13:41:04 +02:00
parent 8f7278e34f
commit f0ac61a8fd
1 changed files with 1 additions and 1 deletions

View File

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