mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#10292 Regression analysis: zoom all curves when changing forecast.
This commit is contained in:
parent
3a81cea65d
commit
b86644bd54
@ -21,6 +21,8 @@
|
||||
#include "RiaQDateTimeTools.h"
|
||||
#include "RiaTimeTTools.h"
|
||||
|
||||
#include "RimSummaryPlot.h"
|
||||
|
||||
#include "cafPdmUiLineEditor.h"
|
||||
#include "cafPdmUiTextEditor.h"
|
||||
|
||||
@ -238,6 +240,8 @@ void RimSummaryRegressionAnalysisCurve::fieldChangedByUi( const caf::PdmFieldHan
|
||||
changedField == &m_forecastForward || changedField == &m_forecastUnit )
|
||||
{
|
||||
loadAndUpdateDataAndPlot();
|
||||
auto plot = firstAncestorOrThisOfTypeAsserted<RimSummaryPlot>();
|
||||
if ( plot ) plot->zoomAll();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user