diff --git a/eeschema/sim/sim_plot_tab.cpp b/eeschema/sim/sim_plot_tab.cpp index aa5c8391f5..6af3d9731a 100644 --- a/eeschema/sim/sim_plot_tab.cpp +++ b/eeschema/sim/sim_plot_tab.cpp @@ -420,7 +420,7 @@ SIM_PLOT_TAB::SIM_PLOT_TAB( const wxString& aSimCommand, wxWindow* parent ) : updateAxes(); // a mpInfoLegend displays le name of traces on the left top panel corner: - m_legend = new mpInfoLegend( wxRect( 0, 40, 200, 40 ), wxTRANSPARENT_BRUSH ); + m_legend = new mpInfoLegend( wxRect( 0, 0, 200, 40 ), wxTRANSPARENT_BRUSH ); m_legend->SetVisible( false ); m_plotWin->AddLayer( m_legend ); diff --git a/eeschema/sim/simulator_frame_ui.cpp b/eeschema/sim/simulator_frame_ui.cpp index 9bb9ed9815..b8f6458cd1 100644 --- a/eeschema/sim/simulator_frame_ui.cpp +++ b/eeschema/sim/simulator_frame_ui.cpp @@ -1874,7 +1874,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 ) + wxT( "\n" ); + simCommand += wxString( cmd ).Trim(); } SIM_TAB* simTab = NewSimTab( simCommand );