mirror of
https://github.com/OPM/ResInsight.git
synced 2026-11-02 20:30:46 -06:00
#12559 Fix crash when creating new summary cross plot curve.
Fixes #12559.
This commit is contained in:
1 parent
0da6e3ccb5
commit
ea0fb1bdd8
1 file changed
+2
@@ -1916,6 +1916,8 @@ void RimSummaryPlot::updateAxisRangesFromPlotWidget()
|
|||||||
{
|
{
|
||||||
if ( !axisProperties ) continue;
|
if ( !axisProperties ) continue;
|
||||||
|
|
||||||
|
if ( !plotWidget()->axisEnabled( axisProperties->plotAxis() ) ) continue;
|
||||||
|
|
||||||
auto [axisMin, axisMax] = plotWidget()->axisRange( axisProperties->plotAxis() );
|
auto [axisMin, axisMax] = plotWidget()->axisRange( axisProperties->plotAxis() );
|
||||||
if ( axisProperties->isAxisInverted() ) std::swap( axisMin, axisMax );
|
if ( axisProperties->isAxisInverted() ) std::swap( axisMin, axisMax );
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user