diff --git a/eeschema/dialogs/dialog_spice_model.cpp b/eeschema/dialogs/dialog_spice_model.cpp index d475e199c5..e6c4de1e47 100644 --- a/eeschema/dialogs/dialog_spice_model.cpp +++ b/eeschema/dialogs/dialog_spice_model.cpp @@ -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;