mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-12 08:25:03 -05:00
Fix crash due to wrong closest index comparison in RigSimulationWellCoordsAndMD
This commit is contained in:
1 parent
f24fb4aaec
commit
47ed8dac74
1 file changed
+1
-1
@@ -92,7 +92,7 @@ double RigSimulationWellCoordsAndMD::locationAlongWellCoords(const cvf::Vec3d& p
|
|||||||
|
|
||||||
size_t closestIndex = findClosestIndex(position);
|
size_t closestIndex = findClosestIndex(position);
|
||||||
|
|
||||||
if (closestIndex != cvf::UNDEFINED_DOUBLE)
|
if (closestIndex != cvf::UNDEFINED_SIZE_T)
|
||||||
{
|
{
|
||||||
cvf::Vec3d p1 = m_wellPathPoints[closestIndex - 1];
|
cvf::Vec3d p1 = m_wellPathPoints[closestIndex - 1];
|
||||||
cvf::Vec3d p2 = m_wellPathPoints[closestIndex - 0];
|
cvf::Vec3d p2 = m_wellPathPoints[closestIndex - 0];
|
||||||
|
|||||||
Reference in new issue
Block a user