Index: DamEngine/trunk/src/Deltares.DamEngine.Data/Geotechnics/SoilProfile2DSurfaceLineHelper.cs =================================================================== diff -u -r5863 -r5867 --- DamEngine/trunk/src/Deltares.DamEngine.Data/Geotechnics/SoilProfile2DSurfaceLineHelper.cs (.../SoilProfile2DSurfaceLineHelper.cs) (revision 5863) +++ DamEngine/trunk/src/Deltares.DamEngine.Data/Geotechnics/SoilProfile2DSurfaceLineHelper.cs (.../SoilProfile2DSurfaceLineHelper.cs) (revision 5867) @@ -198,17 +198,17 @@ private static void AdaptGeometryToSurfaceLineLimits(GeometryPointString surfaceLine, ref GeometryData geometryData) { GeometryBounds geometryBounds = surfaceLine.GetGeometryBounds(); - if (geometryData.Left > geometryBounds.Left) + if (geometryBounds.Left.IsLessThan(geometryData.Left)) GeometryHelper.ExtendGeometryLeft(geometryData, geometryBounds.Left); - else if (geometryData.Left < geometryBounds.Left) + else if (geometryData.Left.IsLessThan(geometryBounds.Left)) GeometryHelper.CutGeometryLeft(geometryData, geometryBounds.Left); - if (geometryData.Right > geometryBounds.Right) + if (geometryBounds.Right.IsLessThan(geometryData.Right)) { GeometryHelper.CutGeometryRight(geometryData, geometryBounds.Right); } else { - if (geometryData.Right < geometryBounds.Right) + if (geometryData.Right.IsLessThan(geometryBounds.Right)) GeometryHelper.ExtendGeometryRight(geometryData, geometryBounds.Right); } }