mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 08:58:11 +00:00
LibGUI: Allow GUI::ProgressBar to have min() == max()
This commit is contained in:
parent
a5420ee3d0
commit
1ca22b46f9
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue