fpspreadsheet: Fix result of formula with unary plus having a string as input.

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8257 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
wp_xxyyzz
2022-04-20 21:33:13 +00:00
parent e363408fea
commit fb53f95eaf

View File

@ -3184,7 +3184,7 @@ begin
if TryStrToFloat(cell^.UTF8StringValue, val) then
Result := FloatResult(val)
else
Result := ErrorResult(errWrongType);
Result := StringResult(cell^.UTF8StringValue);
end else
if cell^.ContentType = cctNumber then
begin