aboutsummaryrefslogtreecommitdiff
path: root/gui/ThemeEval.cpp
diff options
context:
space:
mode:
authorVicent Marti2008-10-14 17:29:48 +0000
committerVicent Marti2008-10-14 17:29:48 +0000
commit820a45d8514be835daf204f54472cbb884fa0ac9 (patch)
treedf3248ad780620c2a1bbaf342bc9e42a12923e81 /gui/ThemeEval.cpp
parentb3625cae2fa2cc74ab69adcd29bfe7f3ede4b19b (diff)
downloadscummvm-rg350-820a45d8514be835daf204f54472cbb884fa0ac9.tar.gz
scummvm-rg350-820a45d8514be835daf204f54472cbb884fa0ac9.tar.bz2
scummvm-rg350-820a45d8514be835daf204f54472cbb884fa0ac9.zip
Fixed: Parser crash when adding an XML layout with an unhandled type.
svn-id: r34801
Diffstat (limited to 'gui/ThemeEval.cpp')
-rw-r--r--gui/ThemeEval.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/gui/ThemeEval.cpp b/gui/ThemeEval.cpp
index 40b671c8c3..4437809599 100644
--- a/gui/ThemeEval.cpp
+++ b/gui/ThemeEval.cpp
@@ -151,6 +151,8 @@ void ThemeEval::addLayout(ThemeLayout::LayoutType type, int spacing, bool center
layout = new ThemeLayoutVertical(_curLayout.top(), spacing, center);
else if (type == ThemeLayout::kLayoutHorizontal)
layout = new ThemeLayoutHorizontal(_curLayout.top(), spacing, center);
+
+ assert(layout);
layout->setPadding(
getVar("Globals.Padding.Left", 0),