mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Fix crash due to wrong closest index comparison in RigSimulationWellCoordsAndMD
This commit is contained in:
@@ -92,7 +92,7 @@ double RigSimulationWellCoordsAndMD::locationAlongWellCoords(const cvf::Vec3d& p
|
||||
|
||||
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 p2 = m_wellPathPoints[closestIndex - 0];
|
||||
|
||||
Reference in New Issue
Block a user