diff --git a/eeschema/sch_plugins/altium/sch_altium_plugin.cpp b/eeschema/sch_plugins/altium/sch_altium_plugin.cpp index 8997bc9de9..1a94e87aaf 100644 --- a/eeschema/sch_plugins/altium/sch_altium_plugin.cpp +++ b/eeschema/sch_plugins/altium/sch_altium_plugin.cpp @@ -156,7 +156,8 @@ SCH_SHEET* SCH_ALTIUM_PLUGIN::Load( const wxString& aFileName, SCHEMATIC* aSchem { wxASSERT( !aFileName || aSchematic != NULL ); - m_filename = aFileName; + wxFileName fileName( aFileName ); + fileName.SetExt( ".kicad_sch" ); m_schematic = aSchematic; // Delete on exception, if I own m_rootSheet, according to aAppendToMe diff --git a/eeschema/sch_plugins/altium/sch_altium_plugin.h b/eeschema/sch_plugins/altium/sch_altium_plugin.h index f1ce3ba261..d287fcfe4c 100644 --- a/eeschema/sch_plugins/altium/sch_altium_plugin.h +++ b/eeschema/sch_plugins/altium/sch_altium_plugin.h @@ -136,7 +136,6 @@ private: private: SCH_SHEET* m_rootSheet; // The root sheet of the schematic being loaded.. SCH_SHEET* m_currentSheet; // The current sheet of the schematic being loaded.. - wxFileName m_filename; SCHEMATIC* m_schematic; // Passed to Load(), the schematic object being loaded wxString m_libName; // Library name to save symbols diff --git a/eeschema/sch_plugins/eagle/sch_eagle_plugin.cpp b/eeschema/sch_plugins/eagle/sch_eagle_plugin.cpp index d87e1b3618..b56d06cd6b 100644 --- a/eeschema/sch_plugins/eagle/sch_eagle_plugin.cpp +++ b/eeschema/sch_plugins/eagle/sch_eagle_plugin.cpp @@ -712,7 +712,7 @@ void SCH_EAGLE_PLUGIN::loadSheet( wxXmlNode* aSheetNode, int aSheetIndex ) ReplaceIllegalFileNameChars( &filename ); replace( filename.begin(), filename.end(), ' ', '_' ); - wxString fn = wxString( filename + ".sch" ); + wxString fn = wxString( filename + ".kicad_sch" ); filenameField.SetText( fn ); wxFileName fileName( fn ); m_currentSheet->GetScreen()->SetFileName( fileName.GetFullPath() );