Ensure that any excess spaces removed
The sim command may have additional whitespace between the type and first char
This commit is contained in:
parent
856cc26d4c
commit
9b4c293f14
|
@ -401,10 +401,12 @@ void SIM_PLOT_PANEL::prepareDCAxes()
|
||||||
wxString sim_cmd = getSimCommand().Lower();
|
wxString sim_cmd = getSimCommand().Lower();
|
||||||
wxString rem;
|
wxString rem;
|
||||||
|
|
||||||
if( sim_cmd.StartsWith( ".dc ", &rem ) )
|
if( sim_cmd.StartsWith( ".dc", &rem ) )
|
||||||
{
|
{
|
||||||
wxChar ch;
|
wxChar ch;
|
||||||
|
|
||||||
|
rem.Trim( false );
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
ch = rem.GetChar( 0 );
|
ch = rem.GetChar( 0 );
|
||||||
|
|
Loading…
Reference in New Issue