Make sure curve legends are shown in same order as the curve items in the explorer when moving them up/down

This commit is contained in:
Jon Jenssen 2022-08-31 15:32:53 +02:00 committed by jonjenssen
parent 9bf4365fb2
commit 7c2720f980

View File

@ -502,6 +502,9 @@ void RimSummaryCurveCollection::defineEditorAttribute( const caf::PdmFieldHandle
//--------------------------------------------------------------------------------------------------
void RimSummaryCurveCollection::onCurvesReordered( const SignalEmitter* emitter )
{
// detach and reattach to make sure curve legends are shown in correct order
detachPlotCurves();
reattachPlotCurves();
curvesChanged.send();
}