diff --git a/eeschema/files-io.cpp b/eeschema/files-io.cpp index fa1a2c1f71..5c14326f0c 100644 --- a/eeschema/files-io.cpp +++ b/eeschema/files-io.cpp @@ -1417,7 +1417,7 @@ void SCH_EDIT_FRAME::CheckForAutoSaveFile( const wxFileName& aFileName ) // Attempt to back up the last schematic file before overwriting it with the auto // save file. - if( !wxRenameFile( recoveredFn.GetFullPath(), backupFn.GetFullPath() ) ) + if( !wxCopyFile( recoveredFn.GetFullPath(), backupFn.GetFullPath() ) ) { unrecoveredFiles.Add( recoveredFn.GetFullPath() ); }