mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-14 01:12:11 -05:00
#9915 Fix crash when using Plot Editor
This commit is contained in:
1 parent
6b83662e9f
commit
a8e131647f
1 file changed
+4
-1
@@ -502,7 +502,10 @@ void RicSummaryPlotEditorUi::updatePreviewCurvesFromCurveDefinitions( const std:
|
||||
curveSet = new RimEnsembleCurveSet();
|
||||
curveSet->disableStatisticCurves();
|
||||
curveSet->setSummaryCaseCollection( curveDef.ensemble() );
|
||||
curveSet->setSummaryAddressAndStatisticsFlag( curveDef.summaryAddress() );
|
||||
|
||||
// Do not call setSummaryAddressAndStatisticsFlag() here, as the call to m_statistics->updateAllRequiredEditors(); causes a
|
||||
// crash in updateUiOrdering. The statistics curves will be created when the curve set is added to the plot.
|
||||
curveSet->setSummaryAddress( curveDef.summaryAddress() );
|
||||
|
||||
// Set single curve set color
|
||||
auto allCurveSets = m_previewPlot->ensembleCurveSetCollection()->curveSets();
|
||||
|
||||
Reference in new issue
Block a user