summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-02-11 03:35:44 +0300
committerAndrei Karas <akaras@inbox.ru>2013-02-11 03:35:44 +0300
commit0b373909f1ad987e38b9c07f799f48c3c0b0c3fd (patch)
treea3170b0f5138da46f730f76725259e39cab32ff6 /src/gui/widgets
parent4d236566cc8132fdbcb901668c3291f7cf3279af (diff)
downloadmanaverse-0b373909f1ad987e38b9c07f799f48c3c0b0c3fd.tar.gz
manaverse-0b373909f1ad987e38b9c07f799f48c3c0b0c3fd.tar.bz2
manaverse-0b373909f1ad987e38b9c07f799f48c3c0b0c3fd.tar.xz
manaverse-0b373909f1ad987e38b9c07f799f48c3c0b0c3fd.zip
Fix compilation issues.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/scrollarea.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/widgets/scrollarea.cpp b/src/gui/widgets/scrollarea.cpp
index e865839ab..b7073372c 100644
--- a/src/gui/widgets/scrollarea.cpp
+++ b/src/gui/widgets/scrollarea.cpp
@@ -956,6 +956,8 @@ gcn::Rectangle ScrollArea::getHorizontalMarkerDimension()
const int w3 = content->getWidth();
if (w3)
length = (width * getChildrenArea().width) / w3;
+ else
+ length = width;
}
else
{