Ensure that any excess spaces removed

The sim command may have additional whitespace between the type and
first char
This commit is contained in:
Seth Hillbrand 2021-10-18 10:09:36 -07:00
parent 856cc26d4c
commit 9b4c293f14
1 changed files with 3 additions and 1 deletions

View File

@ -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 );