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 Magne Sjaastad
parent d806c5225b
commit f979aeba23

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