[Scummvm-cvs-logs] SF.net SVN: scummvm:[35547] scummvm/trunk/gui/ThemeLayout.cpp

fingolfin at users.sourceforge.net fingolfin at users.sourceforge.net
Fri Dec 26 01:57:31 CET 2008


Revision: 35547
          http://scummvm.svn.sourceforge.net/scummvm/?rev=35547&view=rev
Author:   fingolfin
Date:     2008-12-26 00:57:30 +0000 (Fri, 26 Dec 2008)

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

Modified Paths:
--------------
    scummvm/trunk/gui/ThemeLayout.cpp

Modified: scummvm/trunk/gui/ThemeLayout.cpp
===================================================================
--- scummvm/trunk/gui/ThemeLayout.cpp	2008-12-26 00:43:52 UTC (rev 35546)
+++ scummvm/trunk/gui/ThemeLayout.cpp	2008-12-26 00:57:30 UTC (rev 35547)
@@ -71,7 +71,7 @@
 		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;
 	}


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list