From b82dcef50aed677052c37ce852b32b2aacba1836 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Tue, 21 May 2013 21:13:59 +0200 Subject: Render scrollbar correctly if range is greater than maximum value. --- plugingui/scrollbar.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'plugingui') 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); } -- cgit v1.2.3