aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2013-04-21 14:26:03 +0300
committerEugene Sandulenko2013-04-21 14:27:30 +0300
commitb40430bc4b199027588c29045c052b20c70240b8 (patch)
tree546c058360c93952df70ff4567ca3e4b0d1fe09e
parentf882374d8ae5830cfd4bbce8a8786aa90185e598 (diff)
downloadscummvm-rg350-b40430bc4b199027588c29045c052b20c70240b8.tar.gz
scummvm-rg350-b40430bc4b199027588c29045c052b20c70240b8.tar.bz2
scummvm-rg350-b40430bc4b199027588c29045c052b20c70240b8.zip
GUI: Add sanity check to config format. CID 1004153
-rw-r--r--gui/ThemeParser.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/gui/ThemeParser.cpp b/gui/ThemeParser.cpp
index 8285aff7ca..418ec2c283 100644
--- a/gui/ThemeParser.cpp
+++ b/gui/ThemeParser.cpp
@@ -691,7 +691,8 @@ bool ThemeParser::parserCallback_layout(ParserNode *node) {
return false;
}
- Common::parseBool(node->values["center"], center);
+ if (!Common::parseBool(node->values["center"], center))
+ return false;
if (node->values["type"] == "vertical")
_theme->getEvaluator()->addLayout(GUI::ThemeLayout::kLayoutVertical, spacing, center);