Kaydet (Commit) 0bba0524 authored tarafından Julien Nabet's avatar Julien Nabet

Revert "tdf#95687: Wrong function names in Formula Writer are considered as SUM"

This reverts commit e110397a.

Variables weren't dealt with this.
üst 1fdddad6
...@@ -713,16 +713,7 @@ SwCalcOper SwCalc::GetToken() ...@@ -713,16 +713,7 @@ SwCalcOper SwCalc::GetToken()
} }
aVarName = aName; aVarName = aName;
eCurrOper = CALC_NAME; eCurrOper = CALC_NAME;
// Deal with specific "foo" case bSetError = false;
if (sLowerCaseName.equals("foo"))
{
// "foo" function doesn't really exist but is sometimes used
// internally for setProperties method for example
// (see PythonTest_sw_python, set_expression)
bSetError = (sCommand.startsWith("foo("))?true:false;
}
else
bSetError = true;
} }
else if ( aRes.TokenType & KParseType::DOUBLE_QUOTE_STRING ) else if ( aRes.TokenType & KParseType::DOUBLE_QUOTE_STRING )
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment