#906 Las Export: Fixed issue with TVDRKB export and improved UI

This commit is contained in:
Magne Sjaastad
2016-10-14 13:30:04 +02:00
parent 929c1d1633
commit 71f1966c1c
6 changed files with 241 additions and 12 deletions

View File

@@ -642,8 +642,15 @@ double RimWellLogExtractionCurve::rkbDiff() const
{
if (m_wellPath && m_wellPath->wellPathGeometry())
{
return cvf::Math::abs(m_wellPath->wellPathGeometry()->m_measuredDepths[0] - m_wellPath->wellPathGeometry()->m_wellPathPoints[0].z());
RigWellPath* geo = m_wellPath->wellPathGeometry();
if (geo->m_wellPathPoints.size() > 0 && geo->m_measuredDepths.size() > 0)
{
double diff = cvf::Math::abs(cvf::Math::abs(geo->m_wellPathPoints[0].z()) - geo->m_measuredDepths[0]);
return diff;
}
}
return HUGE_VAL;
return -1.0;
}