From 31902f967a83280ca18dc4b757d9a0e92749045d Mon Sep 17 00:00:00 2001 From: ludovic leau-mercier Date: Mon, 8 Jan 2018 12:52:52 +0100 Subject: [PATCH] Fixed an assert when selected the default semiconductor model Fixes: lp:1741050 * https://bugs.launchpad.net/kicad/+bug/1741050 --- eeschema/dialogs/dialog_spice_model.cpp | 1 + 1 file changed, 1 insertion(+) 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;