From 6c0de0526297d607ff3adda0d5b8f7be6ae0fbfb Mon Sep 17 00:00:00 2001 From: Kristian Bendiksen Date: Thu, 16 Jan 2020 09:18:40 +0100 Subject: [PATCH] Update RimWellMeasurementCurve to new api to fix crash in WBS plot. --- .../ProjectDataModel/RimWellMeasurementCurve.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) 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 {