Correctly parse fft commands with linearize in them.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/16011
This commit is contained in:
Jeff Young 2023-11-04 15:19:05 +00:00
parent b6e1387e18
commit 1c746f0134
2 changed files with 7 additions and 3 deletions

View File

@ -365,7 +365,8 @@ void SIMULATOR_FRAME::StartSimulation()
if( !simTab )
return;
if( simTab->GetSimCommand().Upper().StartsWith( wxT( "FFT" ) ) )
if( simTab->GetSimCommand().Upper().StartsWith( wxT( "FFT" ) )
|| simTab->GetSimCommand().Upper().Contains( wxT( "\nFFT" ) ) )
{
wxString tranSpicePlot;

View File

@ -109,8 +109,11 @@ SIM_TYPE SPICE_CIRCUIT_MODEL::CommandToSimType( const wxString& aCmd )
else if( cmd.StartsWith( wxT( ".sens" ) ) ) return ST_SENS;
else if( cmd.StartsWith( wxT( ".sp" ) ) ) return ST_SP;
else if( cmd.StartsWith( wxT( ".tf" ) ) ) return ST_TF;
else if( cmd.StartsWith( wxT( "fft" ) ) ) return ST_FFT;
else return ST_UNKNOWN;
else if( cmd.StartsWith( wxT( "fft" ) ) || cmd.Contains( wxT( "\nfft" ) ) )
return ST_FFT;
else
return ST_UNKNOWN;
}