Index: DamEngine/trunk/src/Deltares.DamEngine.Data/Geotechnics/SoilProfile2DSurfaceLineHelper.cs =================================================================== diff -u -r4764 -r4768 --- DamEngine/trunk/src/Deltares.DamEngine.Data/Geotechnics/SoilProfile2DSurfaceLineHelper.cs (.../SoilProfile2DSurfaceLineHelper.cs) (revision 4764) +++ DamEngine/trunk/src/Deltares.DamEngine.Data/Geotechnics/SoilProfile2DSurfaceLineHelper.cs (.../SoilProfile2DSurfaceLineHelper.cs) (revision 4768) @@ -44,13 +44,13 @@ } if (Math.Round(surfaceLine.CharacteristicPoints.GetGeometryPoint(CharacteristicPointType.SurfaceLevelOutside).X, precisionDecimals) < - Math.Round(soilProfile2D.Geometry.SurfaceLine.Points.First().X, precisionDecimals)) + Math.Round(soilProfile2D.Geometry.SurfaceLine.Points[0].X, precisionDecimals)) { return false; } if (Math.Round(surfaceLine.CharacteristicPoints.GetGeometryPoint(CharacteristicPointType.SurfaceLevelInside).X, precisionDecimals) > - Math.Round(soilProfile2D.Geometry.SurfaceLine.Points.Last().X, precisionDecimals)) + Math.Round(soilProfile2D.Geometry.SurfaceLine.Points[soilProfile2D.Geometry.SurfaceLine.Points.Count - 1].X, precisionDecimals)) { return false; }