Apply DC voltage source exception to current sources.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/15626
This commit is contained in:
Jeff Young 2023-09-12 13:44:30 +01:00
parent 93f004ff65
commit 4a59f0de43
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 != ""
&& 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 = "";