diff --git a/eeschema/sim/sim_serde.cpp b/eeschema/sim/sim_serde.cpp index 4e0cfc2c45..abba91eb06 100644 --- a/eeschema/sim/sim_serde.cpp +++ b/eeschema/sim/sim_serde.cpp @@ -70,7 +70,7 @@ std::string SIM_SERDE::GenerateValue() const for( int i = 0; i < m_model.GetParamCount(); ++i ) { - const SIM_MODEL::PARAM& param = m_model.GetParam( i ); + const SIM_MODEL::PARAM& param = m_model.GetUnderlyingParam( i ); if( i == 0 && m_model.HasPrimaryValue() ) { @@ -103,7 +103,7 @@ std::string SIM_SERDE::GenerateParams() const for( int i = 0; i < m_model.GetParamCount(); ++i ) { - const SIM_MODEL::PARAM& param = m_model.GetParam( i ); + const SIM_MODEL::PARAM& param = m_model.GetUnderlyingParam( i ); if( param.value->ToString() == "" ) continue;