sim - Fix power graphs

This commit is contained in:
Fabien Corona 2023-02-22 13:17:46 +01:00
parent cb71ea872b
commit f2419e9e9b
1 changed files with 1 additions and 1 deletions

View File

@ -528,7 +528,7 @@ void SIM_PLOT_PANEL::updateAxes( SIM_TRACE_TYPE aNewTraceType )
m_axis_y1->SetName( _( "Voltage" ) );
m_axis_y2->SetName( _( "Current" ) );
if( aNewTraceType == SPT_POWER && !m_axis_y3 )
if( ( aNewTraceType & SPT_POWER ) && !m_axis_y3 )
{
m_plotWin->SetMargins( 35, 140, 35, 70 );