#5167 Fix wrong update of plot axis range

* The order of arguments passed to setAxisScale was wrong
This commit is contained in:
Gaute Lindkvist
2019-12-03 14:34:01 +01:00
parent b5e9da3b75
commit 8d15a82147

View File

@@ -315,7 +315,7 @@ void RiuQwtPlotWidget::setAutoTickIntervalCounts( QwtPlot::Axis axis,
this->setAxisMaxMinor( axis, maxMinorTickIntervalCount ); this->setAxisMaxMinor( axis, maxMinorTickIntervalCount );
// Reapply axis limits to force Qwt to use the tick settings. // Reapply axis limits to force Qwt to use the tick settings.
QwtInterval currentRange = this->axisInterval( axis ); QwtInterval currentRange = this->axisInterval( axis );
setAxisScale( currentRange.minValue(), currentRange.maxValue(), axis ); setAxisScale( axis, currentRange.minValue(), currentRange.maxValue() );
} }
//-------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------