diff --git a/eeschema/sim/simulator_frame_ui.cpp b/eeschema/sim/simulator_frame_ui.cpp index b39adbc425..40a538d262 100644 --- a/eeschema/sim/simulator_frame_ui.cpp +++ b/eeschema/sim/simulator_frame_ui.cpp @@ -1933,7 +1933,7 @@ bool SIMULATOR_FRAME_UI::loadJsonWorkbook( const wxString& aPath ) else if( cmd == ".probe allp" ) simOptions |= NETLIST_EXPORTER_SPICE::OPTION_SAVE_ALL_DISSIPATIONS; else - simCommand += wxString( cmd ).Trim(); + simCommand += wxString( cmd.get() ).Trim(); } SIM_TAB* simTab = NewSimTab( simCommand ); @@ -1999,7 +1999,7 @@ bool SIMULATOR_FRAME_UI::loadJsonWorkbook( const wxString& aPath ) if( js.contains( "user_defined_signals" ) ) { for( const nlohmann::json& signal_js : js[ "user_defined_signals" ] ) - m_userDefinedSignals[ii++] = wxString( signal_js ); + m_userDefinedSignals[ii++] = wxString( signal_js.get() ); } auto addCursor = @@ -2044,7 +2044,7 @@ bool SIMULATOR_FRAME_UI::loadJsonWorkbook( const wxString& aPath ) if( trace_js.contains( "color" ) ) { wxColour color; - color.Set( wxString( trace_js[ "color" ] ) ); + color.Set( wxString( trace_js["color"].get() ) ); trace->SetTraceColour( color ); plotTab->UpdateTraceStyle( trace ); }