#4092 Summary Plot: Data Source fails for combined Well and Segment plot

This commit is contained in:
Magne Sjaastad
2019-02-15 12:31:32 +01:00
parent 4eea7e91ee
commit 69bbf6921c

View File

@@ -364,8 +364,8 @@ void RimSummaryPlotSourceStepping::fieldChangedByUi(const caf::PdmFieldHandle* c
ensembleCurveColl->updateConnectedEditors();
}
RiuPlotMainWindow* mainPlotWindow = RiaApplication::instance()->getOrCreateMainPlotWindow();
bool forceUpdateOfFieldsInToolbar = true;
RiuPlotMainWindow* mainPlotWindow = RiaApplication::instance()->getOrCreateMainPlotWindow();
bool forceUpdateOfFieldsInToolbar = true;
mainPlotWindow->updateSummaryPlotToolBar(forceUpdateOfFieldsInToolbar);
return;
@@ -780,11 +780,29 @@ std::vector<caf::PdmFieldHandle*> RimSummaryPlotSourceStepping::computeVisibleFi
analyzer.appendAdresses(addressesCurveCollection());
RifEclipseSummaryAddress::SummaryVarCategory category = RifEclipseSummaryAddress::SUMMARY_INVALID;
if (!analyzer.categories().empty())
{
if (analyzer.categories().size() == 1)
{
category = *(analyzer.categories().begin());
}
else
{
bool allCategoriesAreDependingOnWellName = true;
for (auto c : analyzer.categories())
{
if (!RifEclipseSummaryAddress::isDependentOnWellName(c))
{
allCategoriesAreDependingOnWellName = false;
}
}
if (allCategoriesAreDependingOnWellName)
{
category = RifEclipseSummaryAddress::SUMMARY_WELL;
}
}
}
if (category != RifEclipseSummaryAddress::SUMMARY_INVALID)