mirror of
https://github.com/OPM/ResInsight.git
synced 2024-12-29 10:21:54 -06:00
Decline curves: zoom all curves when changing forecast time.
This commit is contained in:
parent
b86644bd54
commit
4105e58ddb
@ -24,6 +24,8 @@
|
||||
|
||||
#include "RigDeclineCurveCalculator.h"
|
||||
|
||||
#include "RimSummaryPlot.h"
|
||||
|
||||
#include "cafPdmUiDoubleSliderEditor.h"
|
||||
#include "cafPdmUiLineEditor.h"
|
||||
|
||||
@ -295,6 +297,8 @@ void RimSummaryDeclineCurve::fieldChangedByUi( const caf::PdmFieldHandle* change
|
||||
if ( changedField == &m_declineCurveType || changedField == &m_predictionYears || changedField == &m_hyperbolicDeclineConstant )
|
||||
{
|
||||
loadAndUpdateDataAndPlot();
|
||||
auto plot = firstAncestorOrThisOfTypeAsserted<RimSummaryPlot>();
|
||||
if ( plot ) plot->zoomAll();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user