LibGUI: Allow GUI::ProgressBar to have min() == max()

This commit is contained in:
Andreas Kling 2021-04-13 10:08:38 +02:00
commit 1ca22b46f9
Notes: sideshowbarker 2024-07-18 20:26:25 +09:00

View file

@ -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);