mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#5061 WAP: Trigger reload of Well Allocation Data when updating depth type
This commit is contained in:
parent
ae9575feb2
commit
4d38c2ea39
@ -26,6 +26,7 @@
|
|||||||
|
|
||||||
#include "RimEclipseCase.h"
|
#include "RimEclipseCase.h"
|
||||||
#include "RimGeoMechCase.h"
|
#include "RimGeoMechCase.h"
|
||||||
|
#include "RimWellAllocationPlot.h"
|
||||||
#include "RimWellLogCurve.h"
|
#include "RimWellLogCurve.h"
|
||||||
#include "RimWellLogCurveCommonDataSource.h"
|
#include "RimWellLogCurveCommonDataSource.h"
|
||||||
#include "RimWellLogTrack.h"
|
#include "RimWellLogTrack.h"
|
||||||
@ -576,8 +577,17 @@ void RimWellLogPlot::fieldChangedByUi( const caf::PdmFieldHandle* changedField,
|
|||||||
}
|
}
|
||||||
else if ( changedField == &m_depthType )
|
else if ( changedField == &m_depthType )
|
||||||
{
|
{
|
||||||
m_isAutoScaleDepthEnabled = true;
|
m_isAutoScaleDepthEnabled = true;
|
||||||
loadDataAndUpdate();
|
RimWellAllocationPlot* parentWellAllocation = nullptr;
|
||||||
|
this->firstAncestorOrThisOfType( parentWellAllocation );
|
||||||
|
if ( parentWellAllocation )
|
||||||
|
{
|
||||||
|
parentWellAllocation->loadDataAndUpdate();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
loadDataAndUpdate();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if ( changedField == &m_depthUnit )
|
else if ( changedField == &m_depthUnit )
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user