Fix order-of-ops issue in sim plot
(cherry picked from commit 67bd49b4a8
)
This commit is contained in:
parent
910605cc7d
commit
24aad2eed4
|
@ -528,7 +528,7 @@ bool SIM_PLOT_PANEL::AddTrace( const wxString& aName, int aPoints,
|
||||||
|
|
||||||
trace->SetData( std::vector<double>( aX, aX + aPoints ), tmp );
|
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 );
|
trace->SetScale( m_axis_x, m_axis_y2 );
|
||||||
else
|
else
|
||||||
trace->SetScale( m_axis_x, m_axis_y1 );
|
trace->SetScale( m_axis_x, m_axis_y1 );
|
||||||
|
|
Loading…
Reference in New Issue