[Scummvm-cvs-logs] SF.net SVN: scummvm:[46947] scummvm/trunk/gui/object.cpp
lordhoto at users.sourceforge.net
lordhoto at users.sourceforge.net
Sun Jan 3 22:07:57 CET 2010
Revision: 46947
http://scummvm.svn.sourceforge.net/scummvm/?rev=46947&view=rev
Author: lordhoto
Date: 2010-01-03 21:07:56 +0000 (Sun, 03 Jan 2010)
Log Message:
-----------
Setup the dimensions of GuiObject in the constructor, by using reflowLayout.
This properly initializes _x, _y, _w and _h, which might be used
uninitialized otherwise. This probably lead to a creash for _sev,
when drawing the tab widget, before GuiObject::reflowLayout had
been called. FYI GuiObject::reflowLayout is usually only called
on layout changes (i.e. resolution changes etc.), thus it might
not be called before drawing a newly created widget.
Modified Paths:
--------------
scummvm/trunk/gui/object.cpp
Modified: scummvm/trunk/gui/object.cpp
===================================================================
--- scummvm/trunk/gui/object.cpp 2010-01-03 21:07:40 UTC (rev 46946)
+++ scummvm/trunk/gui/object.cpp 2010-01-03 21:07:56 UTC (rev 46947)
@@ -32,6 +32,7 @@
GuiObject::GuiObject(const Common::String &name) : _firstWidget(0) {
_name = name;
+ reflowLayout();
}
GuiObject::~GuiObject() {
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