#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 "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 )
{ {