mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#5140 Fix incorrect values for "Show Plot Data" action on calculated summary curves.
Fixed by checking if all the variables in a calculated expression is based on accumulated data.
This commit is contained in:
@@ -23,6 +23,7 @@
|
||||
#include "RiaGuiApplication.h"
|
||||
#include "RiaPreferences.h"
|
||||
#include "RiaStatisticsTools.h"
|
||||
#include "RiaSummaryTools.h"
|
||||
|
||||
#include "RifReaderEclipseSummary.h"
|
||||
|
||||
@@ -1125,7 +1126,7 @@ void RimSummaryCurve::calculateCurveInterpolationFromAddress()
|
||||
if ( m_yValuesSummaryAddress() )
|
||||
{
|
||||
auto address = m_yValuesSummaryAddress()->address();
|
||||
if ( address.hasAccumulatedData() )
|
||||
if ( RiaSummaryTools::hasAccumulatedData( address ) )
|
||||
{
|
||||
m_curveInterpolation = RiuQwtPlotCurve::INTERPOLATION_POINT_TO_POINT;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user