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 );