Apply DC voltage source exception to current sources.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/15626

(cherry picked from commit 4a59f0de43)
This commit is contained in:
Jeff Young 2023-09-12 13:44:30 +01:00
parent 33da35db04
commit c3ee477a1b
1 changed files with 2 additions and 1 deletions

View File

@ -73,7 +73,8 @@ std::string SPICE_GENERATOR_SOURCE::ItemLine( const SPICE_ITEM& aItem ) const
} }
if( m_model.GetSpiceInfo().inlineTypeString != "" 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 = ""; std::string args = "";