parent
37adf7d3d5
commit
84160c1da4
|
@ -772,7 +772,6 @@ bool SCH_EDIT_FRAME::doAutoSave()
|
||||||
|
|
||||||
bool SCH_EDIT_FRAME::importFile( const wxString& aFileName, int aFileType )
|
bool SCH_EDIT_FRAME::importFile( const wxString& aFileName, int aFileType )
|
||||||
{
|
{
|
||||||
wxString projectpath;
|
|
||||||
wxFileName newfilename;
|
wxFileName newfilename;
|
||||||
SCH_SHEET_LIST sheetList( g_RootSheet );
|
SCH_SHEET_LIST sheetList( g_RootSheet );
|
||||||
|
|
||||||
|
@ -812,9 +811,8 @@ bool SCH_EDIT_FRAME::importFile( const wxString& aFileName, int aFileType )
|
||||||
layoutfile.Close();
|
layoutfile.Close();
|
||||||
}
|
}
|
||||||
|
|
||||||
projectpath = Prj().GetProjectPath();
|
newfilename.SetPath( Prj().GetProjectPath() );
|
||||||
newfilename.SetPath( projectpath );
|
newfilename.SetName( Prj().GetProjectName() );
|
||||||
newfilename.SetName( projectpath );
|
|
||||||
newfilename.SetExt( LegacySchematicFileExtension );
|
newfilename.SetExt( LegacySchematicFileExtension );
|
||||||
|
|
||||||
g_CurrentSheet->clear();
|
g_CurrentSheet->clear();
|
||||||
|
|
Loading…
Reference in New Issue