#5592 Well Path : For well paths with two targets, a fracture and perf interval fails to work

This commit is contained in:
Magne Sjaastad
2020-02-26 14:12:10 +01:00
parent a1aa8a927a
commit db2ca4f98a
2 changed files with 2 additions and 2 deletions

View File

@@ -298,7 +298,7 @@ void RimWellPathFracture::defineEditorAttribute( const caf::PdmFieldHandle* fiel
RigWellPath* wellPathGeo = rimWellPath->wellPathGeometry(); RigWellPath* wellPathGeo = rimWellPath->wellPathGeometry();
if ( !wellPathGeo ) return; if ( !wellPathGeo ) return;
if ( wellPathGeo->m_measuredDepths.size() > 2 ) if ( wellPathGeo->m_measuredDepths.size() > 1 )
{ {
myAttr->m_minimum = wellPathGeo->m_measuredDepths.front(); myAttr->m_minimum = wellPathGeo->m_measuredDepths.front();
myAttr->m_maximum = wellPathGeo->m_measuredDepths.back(); myAttr->m_maximum = wellPathGeo->m_measuredDepths.back();

View File

@@ -559,7 +559,7 @@ void RimWellPathValve::defineEditorAttribute( const caf::PdmFieldHandle* field,
RigWellPath* wellPathGeo = rimWellPath->wellPathGeometry(); RigWellPath* wellPathGeo = rimWellPath->wellPathGeometry();
if ( !wellPathGeo ) return; if ( !wellPathGeo ) return;
if ( wellPathGeo->m_measuredDepths.size() > 2 ) if ( wellPathGeo->m_measuredDepths.size() > 1 )
{ {
minimumValue = wellPathGeo->measureDepths().front(); minimumValue = wellPathGeo->measureDepths().front();
maximumValue = wellPathGeo->measureDepths().back(); maximumValue = wellPathGeo->measureDepths().back();