#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 e0e984f703
commit e894453f49

View File

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