summaryrefslogtreecommitdiff
path: root/src/gui/widgets/scrollarea.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets/scrollarea.cpp')
-rw-r--r--src/gui/widgets/scrollarea.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gui/widgets/scrollarea.cpp b/src/gui/widgets/scrollarea.cpp
index 52372c385..cce45deee 100644
--- a/src/gui/widgets/scrollarea.cpp
+++ b/src/gui/widgets/scrollarea.cpp
@@ -1019,7 +1019,8 @@ Rect ScrollArea::getVerticalMarkerDimension()
if (!mVBarVisible)
return Rect(0, 0, 0, 0);
- int length, pos;
+ int length;
+ int pos;
int height;
const int h2 = mShowButtons
? mScrollbarWidth : mMarkerSize / 2;
@@ -1076,7 +1077,8 @@ Rect ScrollArea::getHorizontalMarkerDimension()
if (!mHBarVisible)
return Rect(0, 0, 0, 0);
- int length, pos;
+ int length;
+ int pos;
int width;
const int w2 = mShowButtons
? mScrollbarWidth : mMarkerSize / 2;