#5061 WAP: Trigger reload of Well Allocation Data when updating depth type

This commit is contained in:
Gaute Lindkvist 2019-11-19 11:09:22 +01:00
parent ae9575feb2
commit 4d38c2ea39

View File

@ -26,6 +26,7 @@
#include "RimEclipseCase.h"
#include "RimGeoMechCase.h"
#include "RimWellAllocationPlot.h"
#include "RimWellLogCurve.h"
#include "RimWellLogCurveCommonDataSource.h"
#include "RimWellLogTrack.h"
@ -577,8 +578,17 @@ void RimWellLogPlot::fieldChangedByUi( const caf::PdmFieldHandle* changedField,
else if ( changedField == &m_depthType )
{
m_isAutoScaleDepthEnabled = true;
RimWellAllocationPlot* parentWellAllocation = nullptr;
this->firstAncestorOrThisOfType( parentWellAllocation );
if ( parentWellAllocation )
{
parentWellAllocation->loadDataAndUpdate();
}
else
{
loadDataAndUpdate();
}
}
else if ( changedField == &m_depthUnit )
{
m_isAutoScaleDepthEnabled = true;