From 80f815b9ce2a71d96bd803bbff6ec673368a55db Mon Sep 17 00:00:00 2001 From: coppro Date: Wed, 14 Apr 2010 22:33:43 +0000 Subject: [PATCH] Make to_title work correctly; patch thanks to Shiv2503. git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1440 0fc631ac-6414-0410-93d0-97cfa31319b6 --- src/script/functions/basic.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/script/functions/basic.cpp b/src/script/functions/basic.cpp index 223576aa..25ca8856 100644 --- a/src/script/functions/basic.cpp +++ b/src/script/functions/basic.cpp @@ -266,7 +266,7 @@ SCRIPT_FUNCTION(to_lower) { // convert a string to title case SCRIPT_FUNCTION(to_title) { SCRIPT_PARAM_C(String, input); - SCRIPT_RETURN(capitalize(input)); + SCRIPT_RETURN(capitalize(input.Lower())); } // reverse a string