ThemeLayout::getParentW was calling getHeight instead of getWidth by mistake (though this didn't seem to cause any problems anywhere... ?)

svn-id: r35547
This commit is contained in:
Max Horn 2008-12-26 00:57:30 +00:00
parent c9105aa58f
commit c59f5919a2

View file

@ -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;
}