#3533 Perforation Interval : Allow init of sliders for two well targets

This commit is contained in:
Magne Sjaastad
2018-10-26 12:09:05 +02:00
parent f6c92a15a6
commit 5f329509c3

View File

@@ -364,14 +364,13 @@ void RimPerforationInterval::defineEditorAttribute(const caf::PdmFieldHandle* fi
RigWellPath* wellPathGeo = rimWellPath->wellPathGeometry();
if (!wellPathGeo) return;
if (wellPathGeo->m_measuredDepths.size() > 2)
if (wellPathGeo->m_measuredDepths.size() > 1)
{
myAttr->m_minimum = wellPathGeo->m_measuredDepths.front();
myAttr->m_maximum = wellPathGeo->m_measuredDepths.back();
}
}
}
}
//--------------------------------------------------------------------------------------------------