PrepareExpression only used in one place and simple; merge down

This commit is contained in:
Glenn Maynard
2006-10-29 20:48:02 +00:00
parent 50a3420683
commit ff2b6f697c
3 changed files with 4 additions and 11 deletions
+4 -1
View File
@@ -957,7 +957,10 @@ void ThemeManager::PushMetric( Lua *L, const RString &sClassName, const RString
}
else
{
LuaHelpers::PrepareExpression( sValue );
// Remove unary +, eg. "+50"; Lua doesn't support that.
if( sValue.size() >= 1 && sValue[0] == '+' )
sValue.erase( 0, 1 );
LuaHelpers::RunExpression( L, sValue, sName );
}
}