Fix further crash issue with stacked data interpolation for well log curves

This commit is contained in:
Gaute Lindkvist 2020-07-03 10:56:15 +02:00
parent bfaff27d51
commit 1ceee51a7d

View File

@ -2408,6 +2408,16 @@ void RimWellLogTrack::updateStackedCurveData()
}
}
}
// The above doesn't sort nearly identical depths. The resampling below requires that.
if ( depthType == RiaDefines::DepthTypeEnum::CONNECTION_NUMBER )
{
std::sort( allDepthValues.begin(), allDepthValues.end(), std::greater<double>() );
}
else
{
std::sort( allDepthValues.begin(), allDepthValues.end() );
}
if ( allDepthValues.empty() ) continue;
size_t stackIndex = 0u;