From 67bd49b4a8c238b30aa3b08f17a4936ca387a786 Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Sat, 27 Jun 2020 19:59:23 -0700 Subject: [PATCH] Fix order-of-ops issue in sim plot --- eeschema/sim/sim_plot_panel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eeschema/sim/sim_plot_panel.cpp b/eeschema/sim/sim_plot_panel.cpp index 406148b613..b6c4fb559a 100644 --- a/eeschema/sim/sim_plot_panel.cpp +++ b/eeschema/sim/sim_plot_panel.cpp @@ -549,7 +549,7 @@ bool SIM_PLOT_PANEL::AddTrace( const wxString& aName, int aPoints, trace->SetData( std::vector( aX, aX + aPoints ), tmp ); - if( aFlags & SPT_AC_PHASE || aFlags & SPT_CURRENT ) + if( ( aFlags & SPT_AC_PHASE ) || ( aFlags & SPT_CURRENT ) ) trace->SetScale( m_axis_x, m_axis_y2 ); else trace->SetScale( m_axis_x, m_axis_y1 );