mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3370 Ensemble curves. Fix crash and duplicate grouped curves issue
This commit is contained in:
@@ -115,7 +115,7 @@ RimSummaryCaseCollection* RimSummaryCase::ensemble() const
|
||||
{
|
||||
RimSummaryCaseCollection* e;
|
||||
firstAncestorOrThisOfType(e);
|
||||
return e;
|
||||
return e && e->isEnsemble() ? e : nullptr;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -743,7 +743,8 @@ void RimSummaryCurve::forceUpdateCurveAppearanceFromCaseType()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimSummaryCurve::markCachedDataForPurge()
|
||||
{
|
||||
valuesSummaryReaderY()->markForCachePurge(m_yValuesCurveVariable->address());
|
||||
auto reader = valuesSummaryReaderY();
|
||||
if(reader) reader->markForCachePurge(m_yValuesCurveVariable->address());
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user