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

Tanoku at users.sourceforge.net Tanoku at users.sourceforge.net
Tue Oct 14 19:22:25 CEST 2008


Revision: 34800
          http://scummvm.svn.sourceforge.net/scummvm/?rev=34800&view=rev
Author:   Tanoku
Date:     2008-10-14 17:22:25 +0000 (Tue, 14 Oct 2008)

Log Message:
-----------
Crash ScummVM when a widget definition cannot be found in the XML file and show a descriptive error.

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

Modified: scummvm/trunk/gui/newgui.cpp
===================================================================
--- scummvm/trunk/gui/newgui.cpp	2008-10-13 22:52:05 UTC (rev 34799)
+++ scummvm/trunk/gui/newgui.cpp	2008-10-14 17:22:25 UTC (rev 34800)
@@ -57,7 +57,7 @@
 void GuiObject::reflowLayout() {
 	if (!_name.empty()) {
 		if (!g_gui.xmlEval()->getWidgetData(_name, _x, _y, _w, _h)) {
-			warning("Could not load widget position for '%s'", _name.c_str());
+			error("Could not load widget position for '%s'", _name.c_str());
 		}
 
 		if (_x < 0)


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