mirror of
https://github.com/OPM/ResInsight.git
synced 2026-08-18 17:15:15 -05:00
#9956 Summary Plot: Fix update of operations on multiple ensembles
When multiple ensemble curve sets are toggled on/off, it is required to do a full RimSummaryPlot::loadDataAndUpdate() that will call RimEnsembleCurveSet::updateCurves() on all ensembles in the plot. This can be a heavy operation, but will happen only once.
This commit is contained in:
@@ -633,10 +633,13 @@ void RimEnsembleCurveSet::fieldChangedByUi( const caf::PdmFieldHandle* changedFi
|
|||||||
|
|
||||||
if ( changedField == &m_showCurves )
|
if ( changedField == &m_showCurves )
|
||||||
{
|
{
|
||||||
loadDataAndUpdate( true );
|
|
||||||
|
|
||||||
updateConnectedEditors();
|
updateConnectedEditors();
|
||||||
|
|
||||||
|
// When multiple ensemble curve sets are toggled on/off, it is required to do a full RimSummaryPlot::loadDataAndUpdate() that will
|
||||||
|
// call RimEnsembleCurveSet::updateCurves() on all ensembles in the plot. This can be a heavy operation, but will happen only once.
|
||||||
|
// https://github.com/OPM/ResInsight/issues/9956
|
||||||
|
plot->loadDataAndUpdate();
|
||||||
|
|
||||||
updateTextInPlot = true;
|
updateTextInPlot = true;
|
||||||
}
|
}
|
||||||
else if ( changedField == &m_yValuesSummaryAddressUiField )
|
else if ( changedField == &m_yValuesSummaryAddressUiField )
|
||||||
|
|||||||
Reference in New Issue
Block a user