diff options
author | Eugene Sandulenko | 2007-06-25 07:44:16 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2007-06-25 07:44:16 +0000 |
commit | f7d90395cdc89c87f59a51cbfb6cd8c26f8aa347 (patch) | |
tree | 8bca3db429a9d1619017879d551af984731175f6 /gui | |
parent | 0d467367d2b02787dfab9418f11b0f39cf106213 (diff) | |
download | scummvm-rg350-f7d90395cdc89c87f59a51cbfb6cd8c26f8aa347.tar.gz scummvm-rg350-f7d90395cdc89c87f59a51cbfb6cd8c26f8aa347.tar.bz2 scummvm-rg350-f7d90395cdc89c87f59a51cbfb6cd8c26f8aa347.zip |
Fix bug #1742561: "GUI: Missaligned text"
svn-id: r27700
Diffstat (limited to 'gui')
-rw-r--r-- | gui/theme-config.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/gui/theme-config.cpp b/gui/theme-config.cpp index 03dc385162..01adbc2d17 100644 --- a/gui/theme-config.cpp +++ b/gui/theme-config.cpp @@ -550,7 +550,7 @@ void Theme::processSingleLine(const String §ion, const String &prefix, const const char **postfixes = (ntmppostfix == 2) ? postfixesRGB : postfixesXYWH; - // Now do it for real, only this time we already know the parantheses + // Now do it for real, only this time we already know the parentheses // are balanced. for (i = 0; i < str.size(); i++) { @@ -571,10 +571,15 @@ void Theme::processSingleLine(const String §ion, const String &prefix, const _evaluator->setStringVar(prefixedname, _evaluator->lastToken()); // process VAR=VALUE construct - if (npostfix == 0) + if (npostfix == 0) { _evaluator->setVar(name, value); - else + + // Fix bug #1742561: "GUI: Missaligned text" + // "blah.align=foo" should be prefixed too + _evaluator->setVar(prefixedname, value); + } else { _evaluator->setVar(prefixedname + postfixes[npostfix], value); + } // If we have all 4 parameters, set .x2 and .y2 if (npostfix == 3) { |