Don't double-add DC parameters.
(Remember that DC's inlineTypeString used to be "".)
This commit is contained in:
parent
7192c565b8
commit
b06c245b8f
|
@ -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 = "";
|
||||
|
||||
|
|
Loading…
Reference in New Issue