Index: Riskeer/Revetment/src/Riskeer.Revetment.Forms/PresentationObjects/SelectableTargetProbability.cs
===================================================================
diff -u -rbd469e7546f50dd6f0fdb1c2744ace5e76737ee1 -r8425f2b7111293b5288f58db90fee16e5b22f718
--- Riskeer/Revetment/src/Riskeer.Revetment.Forms/PresentationObjects/SelectableTargetProbability.cs (.../SelectableTargetProbability.cs) (revision bd469e7546f50dd6f0fdb1c2744ace5e76737ee1)
+++ Riskeer/Revetment/src/Riskeer.Revetment.Forms/PresentationObjects/SelectableTargetProbability.cs (.../SelectableTargetProbability.cs) (revision 8425f2b7111293b5288f58db90fee16e5b22f718)
@@ -110,6 +110,8 @@
}
}
+ ///
+ /// Thrown when the is not in the assessment section.
public override string ToString()
{
return TargetProbabilityCalculationsDisplayNameHelper.GetUniqueDisplayNameForWaterLevelCalculations(HydraulicBoundaryLocationCalculations,
@@ -119,9 +121,9 @@
private bool Equals(SelectableTargetProbability other)
{
return ReferenceEquals(assessmentSection, other.assessmentSection)
- && (ReferenceEquals(HydraulicBoundaryLocationCalculations, other.HydraulicBoundaryLocationCalculations)
- || WaterLevelType == other.WaterLevelType
- && Math.Abs(TargetProbability - other.TargetProbability) < 1e-6);
+ && ReferenceEquals(HydraulicBoundaryLocationCalculations, other.HydraulicBoundaryLocationCalculations)
+ && WaterLevelType == other.WaterLevelType
+ && Math.Abs(TargetProbability - other.TargetProbability) < 1e-6;
}
}
}
\ No newline at end of file