mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -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 "RigDeclineCurveCalculator.h"
|
||||||
|
|
||||||
|
#include "RimSummaryPlot.h"
|
||||||
|
|
||||||
#include "cafPdmUiDoubleSliderEditor.h"
|
#include "cafPdmUiDoubleSliderEditor.h"
|
||||||
#include "cafPdmUiLineEditor.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 )
|
if ( changedField == &m_declineCurveType || changedField == &m_predictionYears || changedField == &m_hyperbolicDeclineConstant )
|
||||||
{
|
{
|
||||||
loadAndUpdateDataAndPlot();
|
loadAndUpdateDataAndPlot();
|
||||||
|
auto plot = firstAncestorOrThisOfTypeAsserted<RimSummaryPlot>();
|
||||||
|
if ( plot ) plot->zoomAll();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user