From 39c28e434beb94addd9788e7ab7c4dd9d66ca12e Mon Sep 17 00:00:00 2001 From: Vicent Marti Date: Thu, 7 Aug 2008 23:23:21 +0000 Subject: SCUMM general and options dialog. Misc fixes. svn-id: r33692 --- gui/ThemeParser.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'gui/ThemeParser.cpp') diff --git a/gui/ThemeParser.cpp b/gui/ThemeParser.cpp index 4d74750b39..010fcaeaf3 100644 --- a/gui/ThemeParser.cpp +++ b/gui/ThemeParser.cpp @@ -565,9 +565,13 @@ bool ThemeParser::parserCallback_layout(ParserNode *node) { bool ThemeParser::parserCallback_space(ParserNode *node) { int size = -1; - if (node->values.contains("size")) - if (!parseIntegerKey(node->values["size"].c_str(), 1, &size)) + if (node->values.contains("size")) { + if (_theme->themeEval()->hasVar(node->values["size"])) + size = _theme->themeEval()->getVar(node->values["size"]); + + else if (!parseIntegerKey(node->values["size"].c_str(), 1, &size)) return parserError("Invalid value for Spacing size."); + } _theme->themeEval()->addSpace(size); return true; -- cgit v1.2.3