summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2013-05-21 21:13:59 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2013-05-21 21:13:59 +0200
commitb82dcef50aed677052c37ce852b32b2aacba1836 (patch)
treee86f281e4aa15422b4254f3b95756c2ff529f52b
parent11f220d8f469d45a62fc1d7a2b47b932c78e17af (diff)
Render scrollbar correctly if range is greater than maximum value.
-rw-r--r--plugingui/scrollbar.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugingui/scrollbar.cc b/plugingui/scrollbar.cc
index d48da1a..07dc36b 100644
--- a/plugingui/scrollbar.cc
+++ b/plugingui/scrollbar.cc
@@ -54,6 +54,7 @@ void GUI::ScrollBar::setMaximum(int m)
{
DEBUG(scroll, "%d\n", m);
max = m;
+ if(max < ran) ran = max;
setValue(value());
repaintEvent(NULL);
}