Don't double-add DC parameters.

(Remember that DC's inlineTypeString used to be "".)
This commit is contained in:
Jeff Young 2022-12-19 01:19:55 +00:00
parent 7192c565b8
commit b06c245b8f
1 changed files with 3 additions and 1 deletions

View File

@ -50,13 +50,15 @@ std::string SPICE_GENERATOR_SOURCE::ItemLine( const SPICE_ITEM& aItem ) const
SPICE_ITEM item = aItem;
item.modelName = "";
std::string inlineType = m_model.GetSpiceInfo().inlineTypeString;
std::string ac = m_model.FindParam( "ac" )->value->ToSpiceString();
std::string ph = m_model.FindParam( "ph" )->value->ToSpiceString();
if( ac != "" )
item.modelName.append( fmt::format( "AC {} {} ", ac, ph ) );
if( m_model.GetSpiceInfo().inlineTypeString != "" )
if( inlineType != "" && inlineType != "DC" )
{
std::string args = "";