diff --git a/eeschema/sim/sim_plot_frame.cpp b/eeschema/sim/sim_plot_frame.cpp index 96f8ac47a6..9a8485fd59 100644 --- a/eeschema/sim/sim_plot_frame.cpp +++ b/eeschema/sim/sim_plot_frame.cpp @@ -706,7 +706,16 @@ bool SIM_PLOT_FRAME::loadWorkbook( const wxString& aPath ) bool SIM_PLOT_FRAME::saveWorkbook( const wxString& aPath ) { - wxTextFile file( aPath ); + + wxString savePath = aPath; + + if( !savePath.Lower().EndsWith(".wbk")) + { + savePath += ".wbk"; + }; + + + wxTextFile file( savePath ); if( file.Exists() ) {