mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#7046 Cross Plot : Avoid reset of curve visibility when color legend visibility changes
This commit is contained in:
parent
f148554798
commit
e4ae27f792
@ -351,7 +351,11 @@ void RimRegularLegendConfig::fieldChangedByUi( const caf::PdmFieldHandle* change
|
|||||||
firstAncestorOrThisOfType( crossPlotCurveSet );
|
firstAncestorOrThisOfType( crossPlotCurveSet );
|
||||||
if ( crossPlotCurveSet )
|
if ( crossPlotCurveSet )
|
||||||
{
|
{
|
||||||
crossPlotCurveSet->destroyCurves();
|
if ( changedField != &m_showLegend )
|
||||||
|
{
|
||||||
|
crossPlotCurveSet->destroyCurves();
|
||||||
|
}
|
||||||
|
|
||||||
crossPlotCurveSet->loadDataAndUpdate( true );
|
crossPlotCurveSet->loadDataAndUpdate( true );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user