mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-12 08:25:03 -05:00
#3968 Ensemble : Not possible to plot two ensembles at the same time
Due to wrong usage of cached number of curves, curves will not be added in some cases. Multiple checking of check boxes will work as a workaround.
This commit is contained in:
1 parent
3929c1dec6
commit
baf00eaeab
1 file changed
+11
-4
@@ -557,12 +557,16 @@ void RiuSummaryCurveDefSelection::fieldChangedByUi(const caf::PdmFieldHandle* ch
|
||||
size_t curveCount = allCurveDefinitionsFromSelection().size();
|
||||
size_t curveSetCount = allCurveSetDefinitionsFromSelections().size();
|
||||
|
||||
if (m_toggleChangedHandler != nullptr && (curveCount != m_prevCurveCount || curveSetCount != m_prevCurveSetCount))
|
||||
if (m_toggleChangedHandler != nullptr)
|
||||
{
|
||||
m_toggleChangedHandler();
|
||||
// Do nothing if the curve count and curve set count is identical
|
||||
if ((curveCount != m_prevCurveCount || curveSetCount != m_prevCurveSetCount))
|
||||
{
|
||||
m_toggleChangedHandler();
|
||||
|
||||
m_prevCurveCount = curveCount;
|
||||
m_prevCurveSetCount = curveSetCount;
|
||||
m_prevCurveCount = curveCount;
|
||||
m_prevCurveSetCount = curveSetCount;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1204,6 +1208,9 @@ void RiuSummaryCurveDefSelection::resetAllFields()
|
||||
a->pdmField()->v().clear();
|
||||
}
|
||||
}
|
||||
|
||||
m_prevCurveCount = 0;
|
||||
m_prevCurveSetCount = 0;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in new issue
Block a user