#7172 Fix updating well/fracture intersection of StimPlan fracture template.

This commit is contained in:
Kristian Bendiksen 2021-01-08 09:25:49 +01:00 committed by Magne Sjaastad
parent 05048fe79b
commit 3e7412802e

View File

@ -127,7 +127,7 @@ void RimStimPlanFractureTemplate::fieldChangedByUi( const caf::PdmFieldHandle* c
if ( &m_useUserDefinedWellPathDepthAtFracture == changedField ) if ( &m_useUserDefinedWellPathDepthAtFracture == changedField )
{ {
if ( m_useUserDefinedWellPathDepthAtFracture ) if ( !m_useUserDefinedWellPathDepthAtFracture )
{ {
m_readError = false; m_readError = false;
loadDataAndUpdate(); loadDataAndUpdate();
@ -289,7 +289,7 @@ void RimStimPlanFractureTemplate::loadDataAndUpdate()
setUnitSystem( m_stimPlanFractureDefinitionData->unitSet() ); setUnitSystem( m_stimPlanFractureDefinitionData->unitSet() );
} }
if ( m_useUserDefinedWellPathDepthAtFracture ) if ( !m_useUserDefinedWellPathDepthAtFracture )
{ {
computeDepthOfWellPathAtFracture(); computeDepthOfWellPathAtFracture();
} }
@ -1057,7 +1057,7 @@ void RimStimPlanFractureTemplate::defineUiOrdering( QString uiConfigName, caf::P
group->add( &m_useUserDefinedWellPathDepthAtFracture ); group->add( &m_useUserDefinedWellPathDepthAtFracture );
group->add( &m_wellPathDepthAtFracture ); group->add( &m_wellPathDepthAtFracture );
m_wellPathDepthAtFracture.uiCapability()->setUiReadOnly( m_useUserDefinedWellPathDepthAtFracture() ); m_wellPathDepthAtFracture.uiCapability()->setUiReadOnly( !m_useUserDefinedWellPathDepthAtFracture() );
} }
{ {