mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-10 07:26:03 -06:00
#2941 3d well log curves: Fix crash if the draw surface width becomes larger than well path length
This commit is contained in:
parent
9e665d5ab1
commit
bef7535eff
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user