mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3147 New summary plot. Fix missing initial source selections
This commit is contained in:
parent
dc4d64c3ab
commit
a5fe2ed69a
@ -386,9 +386,9 @@ void RiuSummaryCurveDefSelection::setDefaultSelection(const std::vector<SummaryS
|
||||
bool hasEnsembles = std::count_if(allSumGroups.begin(), allSumGroups.end(),
|
||||
[](const RimSummaryCaseCollection* sumGroup) { return sumGroup->isEnsemble(); }) > 0;
|
||||
|
||||
if (allSumCases.size() > 0 && !hasEnsembles)
|
||||
if (allSumCases.size() > 0)
|
||||
{
|
||||
RifEclipseSummaryAddress defaultAddress = RifEclipseSummaryAddress::fieldAddress("FOPT");
|
||||
RifEclipseSummaryAddress defaultAddress = !hasEnsembles ? RifEclipseSummaryAddress::fieldAddress("FOPT") : RifEclipseSummaryAddress();
|
||||
|
||||
std::vector<SummarySource*> selectTheseSources = defaultSources;
|
||||
if (selectTheseSources.empty()) selectTheseSources.push_back(allSumCases[0]);
|
||||
|
Loading…
Reference in New Issue
Block a user