#7046 Cross Plot : Avoid reset of curve visibility when color legend visibility changes

This commit is contained in:
Magne Sjaastad
2020-11-25 17:12:34 +01:00
parent f0135d6ebd
commit dedc80f41c

View File

@@ -351,7 +351,11 @@ void RimRegularLegendConfig::fieldChangedByUi( const caf::PdmFieldHandle* change
firstAncestorOrThisOfType( crossPlotCurveSet );
if ( crossPlotCurveSet )
{
crossPlotCurveSet->destroyCurves();
if ( changedField != &m_showLegend )
{
crossPlotCurveSet->destroyCurves();
}
crossPlotCurveSet->loadDataAndUpdate( true );
}