Don't double up ac and ph params.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17970
This commit is contained in:
parent
a20a6e0787
commit
737a4ce925
|
@ -177,6 +177,9 @@ std::string SPICE_GENERATOR_SOURCE::ItemLine( const SPICE_ITEM& aItem ) const
|
|||
default:
|
||||
for( const SIM_MODEL::PARAM& param : m_model.GetParams() )
|
||||
{
|
||||
if( ac != "" && ( param.Matches( "ac" ) || param.Matches( "ph" ) ) )
|
||||
continue;
|
||||
|
||||
std::string argStr = SIM_VALUE::ToSpice( param.value );
|
||||
|
||||
if( argStr != "" )
|
||||
|
|
Loading…
Reference in New Issue