[Scummvm-cvs-logs] SF.net SVN: scummvm: [27700] scummvm/trunk/gui/theme-config.cpp

sev at users.sourceforge.net sev at users.sourceforge.net
Mon Jun 25 09:44:17 CEST 2007


Revision: 27700
          http://scummvm.svn.sourceforge.net/scummvm/?rev=27700&view=rev
Author:   sev
Date:     2007-06-25 00:44:16 -0700 (Mon, 25 Jun 2007)

Log Message:
-----------
Fix bug #1742561: "GUI: Missaligned text"

Modified Paths:
--------------
    scummvm/trunk/gui/theme-config.cpp

Modified: scummvm/trunk/gui/theme-config.cpp
===================================================================
--- scummvm/trunk/gui/theme-config.cpp	2007-06-25 07:13:53 UTC (rev 27699)
+++ scummvm/trunk/gui/theme-config.cpp	2007-06-25 07:44:16 UTC (rev 27700)
@@ -550,7 +550,7 @@
 
 	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 @@
 		_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) {


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list