Fix order-of-ops issue in sim plot

This commit is contained in:
Seth Hillbrand 2020-06-27 19:59:23 -07:00
parent bd19c580f4
commit 67bd49b4a8
1 changed files with 1 additions and 1 deletions

View File

@ -549,7 +549,7 @@ bool SIM_PLOT_PANEL::AddTrace( const wxString& aName, int aPoints,
trace->SetData( std::vector<double>( 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 );