From c3ee477a1b49fe188141252ff43e2480197e16ae Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Tue, 12 Sep 2023 13:44:30 +0100 Subject: [PATCH] Apply DC voltage source exception to current sources. Fixes https://gitlab.com/kicad/code/kicad/-/issues/15626 (cherry picked from commit 4a59f0de430a46cea9c0082da601fae627d0ec5e) --- eeschema/sim/sim_model_source.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eeschema/sim/sim_model_source.cpp b/eeschema/sim/sim_model_source.cpp index 764bce0fbb..9867dff42c 100644 --- a/eeschema/sim/sim_model_source.cpp +++ b/eeschema/sim/sim_model_source.cpp @@ -73,7 +73,8 @@ std::string SPICE_GENERATOR_SOURCE::ItemLine( const SPICE_ITEM& aItem ) const } if( m_model.GetSpiceInfo().inlineTypeString != "" - && m_model.GetType() != SIM_MODEL::TYPE::V ) // DC-only sources are already processed + && m_model.GetType() != SIM_MODEL::TYPE::V // DC-only sources are already processed + && m_model.GetType() != SIM_MODEL::TYPE::I ) { std::string args = "";