mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2918 Summary Plot Title : Make sure title and curve names are stable when deselecting ensemble curve
This commit is contained in:
parent
ea50722cdd
commit
3effc4ca66
@ -596,7 +596,7 @@ void RimPlotCurve::updateLegendEntryVisibilityNoPlotUpdate()
|
||||
{
|
||||
bool showLegendInQwt = m_showLegend();
|
||||
|
||||
if (summaryPlot->ensembleCurveSetCollection()->visibleCurveSets().empty() && summaryPlot->curveCount() == 1)
|
||||
if (summaryPlot->ensembleCurveSetCollection()->curveSets().empty() && summaryPlot->curveCount() == 1)
|
||||
{
|
||||
// Disable display of legend if the summary plot has only one single curve
|
||||
showLegendInQwt = false;
|
||||
|
@ -170,27 +170,6 @@ std::vector<RimEnsembleCurveSet*> RimEnsembleCurveSetCollection::curveSets() con
|
||||
return m_curveSets.childObjects();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
std::vector<RimEnsembleCurveSet*> RimEnsembleCurveSetCollection::visibleCurveSets() const
|
||||
{
|
||||
std::vector<RimEnsembleCurveSet*> visible;
|
||||
|
||||
if (m_showCurves())
|
||||
{
|
||||
for (const auto& c : m_curveSets)
|
||||
{
|
||||
if (c->isCurvesVisible())
|
||||
{
|
||||
visible.push_back(c);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return visible;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -51,7 +51,6 @@ public:
|
||||
void deleteCurveSet(RimEnsembleCurveSet* curveSet);
|
||||
|
||||
std::vector<RimEnsembleCurveSet*> curveSets() const;
|
||||
std::vector<RimEnsembleCurveSet*> visibleCurveSets() const;
|
||||
size_t curveSetCount() const;
|
||||
|
||||
void deleteAllCurveSets();
|
||||
|
@ -1558,11 +1558,8 @@ void RimSummaryPlot::updateNameHelperWithCurveData(RimSummaryPlotNameHelper* nam
|
||||
|
||||
for (auto curveSet : m_ensembleCurveSetCollection->curveSets())
|
||||
{
|
||||
if (curveSet->isCurvesVisible())
|
||||
{
|
||||
addresses.push_back(curveSet->summaryAddress());
|
||||
ensembleCases.push_back(curveSet->summaryCaseCollection());
|
||||
}
|
||||
addresses.push_back(curveSet->summaryAddress());
|
||||
ensembleCases.push_back(curveSet->summaryCaseCollection());
|
||||
}
|
||||
|
||||
nameHelper->clear();
|
||||
|
Loading…
Reference in New Issue
Block a user