#2941 3d well log curves: Fix crash if the draw surface width becomes larger than well path length

This commit is contained in:
Gaute Lindkvist 2018-05-18 14:26:31 +02:00
parent 9e665d5ab1
commit bef7535eff

View File

@ -216,6 +216,11 @@ void Riv3dWellLogDrawSurfaceGenerator::createCurveNormalVectors(const caf::Displ
arrowVectors.push_back(cvf::Vec3f(interpolatedWellPathNormals[i] * planeWidth * totalArrowScaling));
}
if (arrowVertices.empty() || arrowVectors.empty())
{
return;
}
m_curveNormalVectors = new cvf::DrawableVectors();
cvf::ref<cvf::Vec3fArray> vertexArray = new cvf::Vec3fArray(arrowVertices);