Apply commit ddba9e2 from master: fix of not updating spice primitive field

This commit is contained in:
jean-pierre charras 2021-08-31 11:07:37 +02:00
parent 73193196d2
commit 38d463ae49
1 changed files with 1 additions and 1 deletions

View File

@ -193,7 +193,7 @@ bool DIALOG_SPICE_MODEL::TransferDataFromWindow()
int modelIdx = m_modelType->GetSelection();
if( modelIdx > 0 && modelIdx < (int)modelTypes.size() )
if( modelIdx >= 0 && modelIdx < (int)modelTypes.size() )
m_fieldsTmp[SF_PRIMITIVE] = static_cast<char>( modelTypes[modelIdx].type );
m_fieldsTmp[SF_MODEL] = m_modelName->GetValue();