diff --git a/eeschema/sim/sim_plot_frame.cpp b/eeschema/sim/sim_plot_frame.cpp index 90af46fd46..7b743c451f 100644 --- a/eeschema/sim/sim_plot_frame.cpp +++ b/eeschema/sim/sim_plot_frame.cpp @@ -35,6 +35,7 @@ #include #include #include +#include "kicad_string.h" #include "netlist_exporter_pspice_sim.h" #include #include "ngspice.h" @@ -948,7 +949,7 @@ bool SIM_PLOT_FRAME::loadWorkbook( const wxString& aPath ) return false; } - wxString simCommand = file.GetNextLine(); + wxString simCommand = UnescapeString( file.GetNextLine() ); NewPlotPanel( simCommand ); StartSimulation( simCommand ); @@ -1058,7 +1059,7 @@ bool SIM_PLOT_FRAME::saveWorkbook( const wxString& aPath ) } file.AddLine( wxString::Format( "%d", basePanel->GetType() ) ); - file.AddLine( m_workbook->GetSimCommand( basePanel ) ); + file.AddLine( EscapeString( m_workbook->GetSimCommand( basePanel ), CTX_LINE ) ); const SIM_PLOT_PANEL* plotPanel = dynamic_cast( basePanel ); diff --git a/eeschema/sim/sim_workbook.cpp b/eeschema/sim/sim_workbook.cpp index a5241349dc..58db230f36 100644 --- a/eeschema/sim/sim_workbook.cpp +++ b/eeschema/sim/sim_workbook.cpp @@ -25,7 +25,9 @@ #include -SIM_WORKBOOK::SIM_WORKBOOK() = default; +SIM_WORKBOOK::SIM_WORKBOOK() : wxAuiNotebook() +{ +} SIM_WORKBOOK::SIM_WORKBOOK( wxWindow* aParent, wxWindowID aId, const wxPoint& aPos, const wxSize&