From 8d15a82147996724fba547b3fff07a52259fdbcb Mon Sep 17 00:00:00 2001 From: Gaute Lindkvist Date: Tue, 3 Dec 2019 14:34:01 +0100 Subject: [PATCH] #5167 Fix wrong update of plot axis range * The order of arguments passed to setAxisScale was wrong --- ApplicationCode/UserInterface/RiuQwtPlotWidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ApplicationCode/UserInterface/RiuQwtPlotWidget.cpp b/ApplicationCode/UserInterface/RiuQwtPlotWidget.cpp index e1f9d314f9..e1358d1771 100644 --- a/ApplicationCode/UserInterface/RiuQwtPlotWidget.cpp +++ b/ApplicationCode/UserInterface/RiuQwtPlotWidget.cpp @@ -315,7 +315,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() ); } //--------------------------------------------------------------------------------------------------