diff --git a/ApplicationCode/ProjectDataModel/RimWellMeasurementCurve.cpp b/ApplicationCode/ProjectDataModel/RimWellMeasurementCurve.cpp index f5e06aec17..7014b6133c 100644 --- a/ApplicationCode/ProjectDataModel/RimWellMeasurementCurve.cpp +++ b/ApplicationCode/ProjectDataModel/RimWellMeasurementCurve.cpp @@ -120,12 +120,13 @@ void RimWellMeasurementCurve::onLoadDataAndUpdate( bool updateParentPlot ) trueVerticalDepthValues.push_back( -rigWellPath->interpolatedPointAlongWellPath( measuredDepthValue ).z() ); } - this->setValuesAndDepths( values, - measuredDepthValues, - RiaDefines::TRUE_VERTICAL_DEPTH, - rigWellPath->rkbDiff(), - RiaDefines::UNIT_METER, - false ); + + this->setValuesWithMdAndTVD( values, + measuredDepthValues, + trueVerticalDepthValues, + m_wellPath->wellPathGeometry()->rkbDiff(), + RiaDefines::UNIT_METER, + false ); } else {