mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Fix update problems with stacked curves
This commit is contained in:
@@ -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 )
|
||||
{
|
||||
|
Reference in New Issue
Block a user