RFT curve: Detach curve if depth values are invalid

This commit is contained in:
Rebecca Cox
2017-11-01 13:58:46 +01:00
parent 8d388bbd0e
commit d645ecbfa4

View File

@@ -275,10 +275,14 @@ void RimWellLogRftCurve::onLoadDataAndUpdate(bool updateParentPlot)
std::vector<double> tvDepthVector = tvDepthValues();
std::vector<double> values = xValues();
if (values.empty()) return;
if (values.size() != tvDepthVector.size()) return;
if (values.size() != measuredDepthVector.size()) return;
if (values.empty() ||
values.size() != tvDepthVector.size() ||
values.size() != measuredDepthVector.size())
{
this->detachQwtCurve();
return;
}
m_curveData->setValuesWithTVD(values, measuredDepthVector, tvDepthVector, RiaEclipseUnitTools::depthUnit(m_eclipseResultCase->eclipseCaseData()->unitsType()), false);
RiaDefines::DepthUnitType displayUnit = RiaDefines::UNIT_METER;