From e894453f49cad9ec824e3ddf8e216b5136edbfc2 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 f7d6cb1d9d..027692303f 100644 --- a/ApplicationCode/UserInterface/RiuQwtPlotWidget.cpp +++ b/ApplicationCode/UserInterface/RiuQwtPlotWidget.cpp @@ -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() ); } //--------------------------------------------------------------------------------------------------