From 737a4ce92595763c21997c84cf7bc7c21ec02bb5 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Thu, 9 May 2024 23:35:58 +0100 Subject: [PATCH] Don't double up ac and ph params. Fixes https://gitlab.com/kicad/code/kicad/-/issues/17970 --- eeschema/sim/sim_model_source.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/eeschema/sim/sim_model_source.cpp b/eeschema/sim/sim_model_source.cpp index 6f3578cb4b..3080c649d6 100644 --- a/eeschema/sim/sim_model_source.cpp +++ b/eeschema/sim/sim_model_source.cpp @@ -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 != "" )