From 4917abe65558a41de452fa9bf978a0d2933fd333 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Wed, 22 Feb 2023 23:28:35 +0000 Subject: [PATCH] Make sure whitespace at end of command doesn't mess up detection. (Fixes the failing test case.) --- eeschema/sim/ngspice_circuit_model.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eeschema/sim/ngspice_circuit_model.cpp b/eeschema/sim/ngspice_circuit_model.cpp index 6616a8fc9e..82e824c66c 100644 --- a/eeschema/sim/ngspice_circuit_model.cpp +++ b/eeschema/sim/ngspice_circuit_model.cpp @@ -96,7 +96,7 @@ SIM_TYPE NGSPICE_CIRCUIT_MODEL::GetSimType() SIM_TYPE NGSPICE_CIRCUIT_MODEL::CommandToSimType( const wxString& aCmd ) { - wxString cmd = aCmd.Lower(); + wxString cmd = aCmd.Lower().Trim(); if( cmd.StartsWith( wxT( ".ac" ) ) ) return ST_AC;