mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#4092 Summary Plot: Data Source fails for combined Well and Segment plot
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user