mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -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:
@@ -216,6 +216,11 @@ void Riv3dWellLogDrawSurfaceGenerator::createCurveNormalVectors(const caf::Displ
|
|||||||
arrowVectors.push_back(cvf::Vec3f(interpolatedWellPathNormals[i] * planeWidth * totalArrowScaling));
|
arrowVectors.push_back(cvf::Vec3f(interpolatedWellPathNormals[i] * planeWidth * totalArrowScaling));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (arrowVertices.empty() || arrowVectors.empty())
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
m_curveNormalVectors = new cvf::DrawableVectors();
|
m_curveNormalVectors = new cvf::DrawableVectors();
|
||||||
|
|
||||||
cvf::ref<cvf::Vec3fArray> vertexArray = new cvf::Vec3fArray(arrowVertices);
|
cvf::ref<cvf::Vec3fArray> vertexArray = new cvf::Vec3fArray(arrowVertices);
|
||||||
|
|||||||
Reference in New Issue
Block a user