Fix save-as extension of imported schematics

Fixes https://gitlab.com/kicad/code/kicad/issues/7333
This commit is contained in:
RigoLigoRLC 2021-02-01 18:34:59 +00:00 committed by Seth Hillbrand
parent 23c6dbff38
commit afad1625d7
1 changed files with 2 additions and 2 deletions

View File

@ -911,7 +911,7 @@ bool SCH_EDIT_FRAME::importFile( const wxString& aFileName, int aFileType )
case SCH_IO_MGR::SCH_EAGLE: case SCH_IO_MGR::SCH_EAGLE:
// We insist on caller sending us an absolute path, if it does not, we say it's a bug. // We insist on caller sending us an absolute path, if it does not, we say it's a bug.
wxASSERT_MSG( wxFileName( aFileName ).IsAbsolute(), wxASSERT_MSG( wxFileName( aFileName ).IsAbsolute(),
wxT( "Import eagle schematic caller didn't send full filename" ) ); wxT( "Import schematic caller didn't send full filename" ) );
if( !LockFile( aFileName ) ) if( !LockFile( aFileName ) )
{ {
@ -943,7 +943,7 @@ bool SCH_EDIT_FRAME::importFile( const wxString& aFileName, int aFileType )
newfilename.SetPath( Prj().GetProjectPath() ); newfilename.SetPath( Prj().GetProjectPath() );
newfilename.SetName( Prj().GetProjectName() ); newfilename.SetName( Prj().GetProjectName() );
newfilename.SetExt( LegacySchematicFileExtension ); newfilename.SetExt( KiCadSchematicFileExtension );
SetScreen( GetCurrentSheet().LastScreen() ); SetScreen( GetCurrentSheet().LastScreen() );