Fix typo.

Fixes https://gitlab.com/kicad/code/kicad/issues/4448
This commit is contained in:
Jeff Young 2020-05-15 00:26:54 +01:00
parent 37adf7d3d5
commit 84160c1da4
1 changed files with 2 additions and 4 deletions

View File

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