Index: Ringtoets/ClosingStructures/src/Ringtoets.ClosingStructures.Data/ClosingStructuresInput.cs =================================================================== diff -u -r88e625c7d47b0efd2a5ea8ea118e524c8f8e36ca -rd5daf17a6ed66dddef590069e4db152f6250c2c3 --- Ringtoets/ClosingStructures/src/Ringtoets.ClosingStructures.Data/ClosingStructuresInput.cs (.../ClosingStructuresInput.cs) (revision 88e625c7d47b0efd2a5ea8ea118e524c8f8e36ca) +++ Ringtoets/ClosingStructures/src/Ringtoets.ClosingStructures.Data/ClosingStructuresInput.cs (.../ClosingStructuresInput.cs) (revision d5daf17a6ed66dddef590069e4db152f6250c2c3) @@ -361,12 +361,17 @@ } set { + if (double.IsNaN(value)) + { + structureNormalOrientation = (RoundedDouble) double.NaN; + return; + } + RoundedDouble newOrientationValue = value.ToPrecision(structureNormalOrientation.NumberOfDecimalPlaces); - if (double.IsNaN(newOrientationValue) || newOrientationValue < 0 || newOrientationValue > 360) + if (newOrientationValue < 0 || newOrientationValue > 360) { throw new ArgumentOutOfRangeException("value", RingtoetsCommonDataResources.Orientation_Value_needs_to_be_between_0_and_360); } - structureNormalOrientation = newOrientationValue; } }