diff --git a/ApplicationCode/UserInterface/RiuSummaryCurveDefSelection.cpp b/ApplicationCode/UserInterface/RiuSummaryCurveDefSelection.cpp index ab66a72c00..a94d410d83 100644 --- a/ApplicationCode/UserInterface/RiuSummaryCurveDefSelection.cpp +++ b/ApplicationCode/UserInterface/RiuSummaryCurveDefSelection.cpp @@ -381,7 +381,11 @@ void RiuSummaryCurveDefSelection::setDefaultSelection(const std::vectorproject(); auto allSumCases = proj->allSummaryCases(); - if (allSumCases.size() > 0) + auto allSumGroups = proj->summaryGroups(); + bool hasEnsembles = std::count_if(allSumGroups.begin(), allSumGroups.end(), + [](const auto& sumGroup) { return sumGroup->isEnsemble(); }) > 0; + + if (allSumCases.size() > 0 && !hasEnsembles) { RifEclipseSummaryAddress defaultAddress = RifEclipseSummaryAddress::fieldAddress("FOPT");