Index: src/Deltares.DSoilModel.Forms/DSoilModelGeometryEditor.cs =================================================================== diff -u -r790 -r794 --- src/Deltares.DSoilModel.Forms/DSoilModelGeometryEditor.cs (.../DSoilModelGeometryEditor.cs) (revision 790) +++ src/Deltares.DSoilModel.Forms/DSoilModelGeometryEditor.cs (.../DSoilModelGeometryEditor.cs) (revision 794) @@ -496,7 +496,7 @@ var ccl = sender as CenterCrestLocation; if (ccl != null) { - if (Math.Abs(ccl.SoilProfile2D.CenterCrestLocation - ccl.Location) > double.Epsilon && !(double.IsNaN(ccl.SoilProfile2D.CenterCrestLocation) + if (Math.Abs(ccl.SoilProfile2D.CenterCrestLocation - ccl.Location) > GeometryConstants.Accuracy && !(double.IsNaN(ccl.SoilProfile2D.CenterCrestLocation) && double.IsNaN(ccl.Location))) { ccl.SoilProfile2D.CenterCrestLocation = ccl.Location; @@ -517,7 +517,7 @@ } if (localCenterCrestLocation != null && Object.ReferenceEquals(localCenterCrestLocation.SoilProfile2D, soilProfile2D) && - (Math.Abs(localCenterCrestLocation.Location - soilProfile2D.CenterCrestLocation) > double.Epsilon || + (Math.Abs(localCenterCrestLocation.Location - soilProfile2D.CenterCrestLocation) > GeometryConstants.Accuracy || double.IsNaN(localCenterCrestLocation.Location) || double.IsNaN(soilProfile2D.CenterCrestLocation))) { localCenterCrestLocation.Location = soilProfile2D.CenterCrestLocation; @@ -862,7 +862,7 @@ || updateForCenterCrestLocation) { updateForCenterCrestLocation = false; - if (soilProfile2D.Geometry.Points.Count == 0 && Math.Abs(soilProfile2D.Geometry.Bottom - Double.MaxValue) < Double.Epsilon) + if (soilProfile2D.Geometry.Points.Count == 0 && Math.Abs(soilProfile2D.Geometry.Bottom - Double.MaxValue) < GeometryConstants.Accuracy) { soilProfile2D.Geometry.Left = GeometryConstants.DefaultLeftLimitGeometry; soilProfile2D.Geometry.Right = GeometryConstants.DefaultRightLimitGeometry;