Remove asserts from defineEditorAttribute

This commit is contained in:
Magne Sjaastad committed 2017-12-18 07:13:58 +01:00
1 parent e10c7fd633
commit 78be5b351e
1 file changed
+6 -7
@@ -194,16 +194,15 @@ void RimWellPathFracture::defineEditorAttribute(const caf::PdmFieldHandle* field
{
RimWellPath* rimWellPath = nullptr;
this->firstAncestorOrThisOfType(rimWellPath);
CVF_ASSERT(rimWellPath);
if (!rimWellPath) return;
RigWellPath* wellPathGeo = rimWellPath->wellPathGeometry();
CVF_ASSERT(wellPathGeo);
if (!wellPathGeo) return;
if (wellPathGeo->m_measuredDepths.size() > 2)
{
if (wellPathGeo->m_measuredDepths.size() > 2)
{
myAttr->m_minimum = wellPathGeo->m_measuredDepths.front();
myAttr->m_maximum = wellPathGeo->m_measuredDepths.back();
}
myAttr->m_minimum = wellPathGeo->m_measuredDepths.front();
myAttr->m_maximum = wellPathGeo->m_measuredDepths.back();
}
}
}