mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-13 12:39:56 +00:00
Crash ScummVM when a widget definition cannot be found in the XML file and show a descriptive error.
svn-id: r34800
This commit is contained in:
parent
c949eb2dac
commit
b3625cae2f
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user