Fixed an assert when selected the default semiconductor model

Fixes: lp:1741050
* https://bugs.launchpad.net/kicad/+bug/1741050
This commit is contained in:
ludovic leau-mercier 2018-01-08 12:52:52 +01:00 committed by Maciej Suminski
parent ea9b568743
commit 31902f967a
1 changed files with 1 additions and 0 deletions

View File

@ -134,6 +134,7 @@ bool DIALOG_SPICE_MODEL::TransferDataFromWindow()
switch( m_modelType->GetSelection() )
{
case -1: break;
case 0: m_fieldsTmp[SF_PRIMITIVE] = (char) SP_SUBCKT; break;
case 1: m_fieldsTmp[SF_PRIMITIVE] = (char) SP_BJT; break;
case 2: m_fieldsTmp[SF_PRIMITIVE] = (char) SP_MOSFET; break;