diff options
author | Vicent Marti | 2008-10-14 17:22:25 +0000 |
---|---|---|
committer | Vicent Marti | 2008-10-14 17:22:25 +0000 |
commit | b3625cae2fa2cc74ab69adcd29bfe7f3ede4b19b (patch) | |
tree | 39f42275de9a2b3971c3446db7b08a81319f5433 | |
parent | c949eb2daca88608bb582b2133f751cf4707f8dd (diff) | |
download | scummvm-rg350-b3625cae2fa2cc74ab69adcd29bfe7f3ede4b19b.tar.gz scummvm-rg350-b3625cae2fa2cc74ab69adcd29bfe7f3ede4b19b.tar.bz2 scummvm-rg350-b3625cae2fa2cc74ab69adcd29bfe7f3ede4b19b.zip |
Crash ScummVM when a widget definition cannot be found in the XML file and show a descriptive error.
svn-id: r34800
-rw-r--r-- | gui/newgui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gui/newgui.cpp b/gui/newgui.cpp index 6d3957560f..e7e5fcf785 100644 --- a/gui/newgui.cpp +++ b/gui/newgui.cpp @@ -57,7 +57,7 @@ enum { 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) |