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 "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;
|
||||
|
Loading…
Reference in New Issue
Block a user