diff --git a/eeschema/sim/sim_plot_panel.cpp b/eeschema/sim/sim_plot_panel.cpp index 24c101d535..bbc3940dea 100644 --- a/eeschema/sim/sim_plot_panel.cpp +++ b/eeschema/sim/sim_plot_panel.cpp @@ -401,10 +401,12 @@ void SIM_PLOT_PANEL::prepareDCAxes() wxString sim_cmd = getSimCommand().Lower(); wxString rem; - if( sim_cmd.StartsWith( ".dc ", &rem ) ) + if( sim_cmd.StartsWith( ".dc", &rem ) ) { wxChar ch; + rem.Trim( false ); + try { ch = rem.GetChar( 0 );