Make sure single curves from individual realizations are displayed on top

This commit is contained in:
Magne Sjaastad
2023-12-07 10:46:46 +01:00
parent b3865d2d4a
commit f421c43450

View File

@@ -843,7 +843,7 @@ double RimSummaryCurve::computeCurveZValue()
{
zOrder = RiuQwtPlotCurveDefines::zDepthForIndex( RiuQwtPlotCurveDefines::ZIndex::Z_ENSEMBLE_STAT_CURVE );
}
else if ( sumCase->ensemble() )
else if ( firstAncestorOrThisOfType<RimEnsembleCurveSetCollection>() )
{
zOrder = RiuQwtPlotCurveDefines::zDepthForIndex( RiuQwtPlotCurveDefines::ZIndex::Z_ENSEMBLE_CURVE );
}