Correctly parse fft commands with linearize in them.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16011
This commit is contained in:
parent
b6e1387e18
commit
1c746f0134
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue