#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 f148554798
commit e4ae27f792

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 );
}