Don't double up ac and ph params.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/17970
This commit is contained in:
Jeff Young 2024-05-09 23:35:58 +01:00
parent a20a6e0787
commit 737a4ce925
1 changed files with 3 additions and 0 deletions

View File

@ -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 != "" )