From 84160c1da4d68cf08508007d3c6fc24d37242bdb Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Fri, 15 May 2020 00:26:54 +0100 Subject: [PATCH] Fix typo. Fixes https://gitlab.com/kicad/code/kicad/issues/4448 --- eeschema/files-io.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/eeschema/files-io.cpp b/eeschema/files-io.cpp index 6f0f6b27b6..a8ac2a23a8 100644 --- a/eeschema/files-io.cpp +++ b/eeschema/files-io.cpp @@ -772,7 +772,6 @@ bool SCH_EDIT_FRAME::doAutoSave() bool SCH_EDIT_FRAME::importFile( const wxString& aFileName, int aFileType ) { - wxString projectpath; wxFileName newfilename; SCH_SHEET_LIST sheetList( g_RootSheet ); @@ -812,9 +811,8 @@ bool SCH_EDIT_FRAME::importFile( const wxString& aFileName, int aFileType ) layoutfile.Close(); } - projectpath = Prj().GetProjectPath(); - newfilename.SetPath( projectpath ); - newfilename.SetName( projectpath ); + newfilename.SetPath( Prj().GetProjectPath() ); + newfilename.SetName( Prj().GetProjectName() ); newfilename.SetExt( LegacySchematicFileExtension ); g_CurrentSheet->clear();