diff options
author | Andreas Kling <kling@serenityos.org> | 2021-04-13 10:08:38 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-04-13 10:12:50 +0200 |
commit | 1ca22b46f9aa320d6e3bea0dfac6d71211f5364e (patch) | |
tree | d69008ca82202047ed33ea0a5555b39da651acd1 | |
parent | a5420ee3d001c71685ad0b8ede953ed1ff4cca9f (diff) | |
download | serenity-1ca22b46f9aa320d6e3bea0dfac6d71211f5364e.zip |
LibGUI: Allow GUI::ProgressBar to have min() == max()
-rw-r--r-- | Userland/Libraries/LibGUI/ProgressBar.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibGUI/ProgressBar.cpp b/Userland/Libraries/LibGUI/ProgressBar.cpp index e9747f3369..fe452a9711 100644 --- a/Userland/Libraries/LibGUI/ProgressBar.cpp +++ b/Userland/Libraries/LibGUI/ProgressBar.cpp @@ -62,7 +62,7 @@ void ProgressBar::set_value(int value) void ProgressBar::set_range(int min, int max) { - VERIFY(min < max); + VERIFY(min <= max); m_min = min; m_max = max; m_value = clamp(m_value, m_min, m_max); |