From 630ff023699174e2383f75b7875b06bb22893e49 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sun, 5 Mar 2023 22:38:09 +0000 Subject: [PATCH] Fix bone-headed logic. (Else clause never gets called because 3 is always > 2.) --- eeschema/sim/simulator_frame.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eeschema/sim/simulator_frame.cpp b/eeschema/sim/simulator_frame.cpp index cedeac753c..5388bc8f1c 100644 --- a/eeschema/sim/simulator_frame.cpp +++ b/eeschema/sim/simulator_frame.cpp @@ -2065,7 +2065,8 @@ bool SIMULATOR_FRAME::LoadWorkbook( const wxString& aPath ) simOptions &= ~NETLIST_EXPORTER_SPICE::OPTION_SAVE_ALL_VOLTAGES; simOptions &= ~NETLIST_EXPORTER_SPICE::OPTION_SAVE_ALL_CURRENTS; } - else if( version >= 3 ) + + if( version >= 3 ) { simOptions &= ~NETLIST_EXPORTER_SPICE::OPTION_SAVE_ALL_DISSIPATIONS; }