mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#5167 Fix wrong update of plot axis range
* The order of arguments passed to setAxisScale was wrong
This commit is contained in:
parent
e0e984f703
commit
e894453f49
@ -305,7 +305,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() );
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user