summaryrefslogtreecommitdiff
path: root/plugingui/scrollbar.cc
diff options
context:
space:
mode:
Diffstat (limited to 'plugingui/scrollbar.cc')
-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);
}