Fix crash due to wrong closest index comparison in RigSimulationWellCoordsAndMD

This commit is contained in:
Gaute Lindkvist
2018-05-08 14:38:17 +02:00
parent f24fb4aaec
commit 47ed8dac74

View File

@@ -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];