diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2013-05-21 21:13:59 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2013-05-21 21:13:59 +0200 |
commit | b82dcef50aed677052c37ce852b32b2aacba1836 (patch) | |
tree | e86f281e4aa15422b4254f3b95756c2ff529f52b /plugingui/scrollbar.cc | |
parent | 11f220d8f469d45a62fc1d7a2b47b932c78e17af (diff) |
Render scrollbar correctly if range is greater than maximum value.
Diffstat (limited to 'plugingui/scrollbar.cc')
-rw-r--r-- | plugingui/scrollbar.cc | 1 |
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); } |