mirror of
https://github.com/OPM/ResInsight.git
synced 2026-11-03 20:56:45 -06:00
#11857 Make sure the summary curve type is updated
Always compute curve type Rate or Accumulated based on address if Auto curve type is set.
This commit is contained in:
1 parent
1cbdbfa7df
commit
67e6df28b5
8 files changed
+11
-18
No files matched your search
@@ -260,7 +260,7 @@ RimSummaryCurve* RicPlotProductionRateFeature::addSummaryCurve( RimSummaryPlot*
|
||||
plot->addCurveAndUpdate( newCurve );
|
||||
|
||||
newCurve->setSummaryCaseY( summaryCase );
|
||||
newCurve->setSummaryAddressYAndApplyInterpolation( addr );
|
||||
newCurve->setSummaryAddressY( addr );
|
||||
newCurve->setColor( color );
|
||||
newCurve->setLeftOrRightAxisY( RiuPlotAxis( plotAxis ) );
|
||||
newCurve->loadDataAndUpdate( true );
|
||||
|
||||
@@ -532,7 +532,7 @@ void RicSummaryPlotEditorUi::updatePreviewCurvesFromCurveDefinitions( const std:
|
||||
curve->setShowInLegend( false );
|
||||
}
|
||||
curve->setSummaryCaseY( currentCase );
|
||||
curve->setSummaryAddressYAndApplyInterpolation( curveDef.summaryAddressY() );
|
||||
curve->setSummaryAddressY( curveDef.summaryAddressY() );
|
||||
curve->applyCurveAutoNameSettings( *m_curveNameConfig() );
|
||||
if ( currentCase && currentCase->isObservedData() ) curve->setSymbolSkipDistance( 0 );
|
||||
|
||||
|
||||
@@ -689,7 +689,7 @@ RimSummaryCurve* RicSummaryPlotFeatureImpl::createCurve( RimSummaryCase* summary
|
||||
{
|
||||
auto curve = new RimSummaryCurve();
|
||||
curve->setSummaryCaseY( summaryCase );
|
||||
curve->setSummaryAddressYAndApplyInterpolation( address );
|
||||
curve->setSummaryAddressY( address );
|
||||
|
||||
return curve;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user