aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Horn2008-12-26 00:57:30 +0000
committerMax Horn2008-12-26 00:57:30 +0000
commitc59f5919a23419203f5a7e73bb8bb658ac50b14d (patch)
treeef5b0b769a9577c32db394582944c1becfad960b
parentc9105aa58f3b0a210c32aa51e0c1ff4ebe896241 (diff)
downloadscummvm-rg350-c59f5919a23419203f5a7e73bb8bb658ac50b14d.tar.gz
scummvm-rg350-c59f5919a23419203f5a7e73bb8bb658ac50b14d.tar.bz2
scummvm-rg350-c59f5919a23419203f5a7e73bb8bb658ac50b14d.zip
ThemeLayout::getParentW was calling getHeight instead of getWidth by mistake (though this didn't seem to cause any problems anywhere... ?)
svn-id: r35547
-rw-r--r--gui/ThemeLayout.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gui/ThemeLayout.cpp b/gui/ThemeLayout.cpp
index 821eed472d..1d5239ef80 100644
--- a/gui/ThemeLayout.cpp
+++ b/gui/ThemeLayout.cpp
@@ -71,7 +71,7 @@ int16 ThemeLayout::getParentW() {
width += p->_paddingRight + p->_paddingLeft;
if (p->getLayoutType() == kLayoutHorizontal) {
for (uint i = 0; i < p->_children.size(); ++i)
- width += p->_children[i]->getHeight() + p->_spacing;
+ width += p->_children[i]->getWidth() + p->_spacing;
}
p = p->_parent;
}