From dd5d7a2653dcce3aa8006c9a029204678c2d912c Mon Sep 17 00:00:00 2001 From: Lamparter <71598437+Lamparter@users.noreply.github.com> Date: Sun, 1 Dec 2024 08:49:42 +0000 Subject: [PATCH] Fix issue --- components/RangeSelector/src/RangeSelector.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/components/RangeSelector/src/RangeSelector.cs b/components/RangeSelector/src/RangeSelector.cs index 7cf3bdbb..0b527284 100644 --- a/components/RangeSelector/src/RangeSelector.cs +++ b/components/RangeSelector/src/RangeSelector.cs @@ -34,7 +34,6 @@ public partial class RangeSelector : Control internal const string MinPressedState = "MinPressed"; internal const string MaxPressedState = "MaxPressed"; - private const double Epsilon = 0.01; private const double DefaultMinimum = 0.0; private const double DefaultMaximum = 10.0; private const double DefaultStepFrequency = 1; @@ -168,7 +167,7 @@ private void VerifyValues() if (Minimum == Maximum) { - Maximum += Epsilon; + throw new ArgumentException("Maximum and Minimum values cannot be equal."); } if (!_maxSet)