Fix update problems with stacked curves

This commit is contained in:
Gaute Lindkvist
2020-08-10 11:03:04 +02:00
parent 86a4f5613c
commit c3982a5782

View File

@@ -1372,6 +1372,8 @@ void RimSummaryPlot::updateStackedCurveData()
{
updateStackedCurveDataForAxis( RiaDefines::PlotAxis::PLOT_AXIS_LEFT );
updateStackedCurveDataForAxis( RiaDefines::PlotAxis::PLOT_AXIS_RIGHT );
loadDataAndUpdate();
}
//--------------------------------------------------------------------------------------------------
@@ -1383,8 +1385,6 @@ void RimSummaryPlot::updateStackedCurveDataForAxis( RiaDefines::PlotAxis plotAxi
auto stackedCurves = visibleStackedSummaryCurvesForAxis( plotAxis );
if ( stackedCurves.size() <= 1u ) return; // No point in stacking if there's less than two curves
// Reset all curves
for ( RimSummaryCurve* curve : stackedCurves )
{