mirror of
https://github.com/OPM/ResInsight.git
synced 2026-08-27 05:37:21 -05:00
#12559 Fix crash when creating new summary cross plot curve.
Fixes #12559.
This commit is contained in:
@@ -1916,6 +1916,8 @@ void RimSummaryPlot::updateAxisRangesFromPlotWidget()
|
||||
{
|
||||
if ( !axisProperties ) continue;
|
||||
|
||||
if ( !plotWidget()->axisEnabled( axisProperties->plotAxis() ) ) continue;
|
||||
|
||||
auto [axisMin, axisMax] = plotWidget()->axisRange( axisProperties->plotAxis() );
|
||||
if ( axisProperties->isAxisInverted() ) std::swap( axisMin, axisMax );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user