From fb53f95eaf8824cab7fc2d6eefe95e66dc6a6764 Mon Sep 17 00:00:00 2001 From: wp_xxyyzz Date: Wed, 20 Apr 2022 21:33:13 +0000 Subject: [PATCH] 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 --- components/fpspreadsheet/source/common/fpsexprparser.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/fpspreadsheet/source/common/fpsexprparser.pas b/components/fpspreadsheet/source/common/fpsexprparser.pas index f9c336a6d..ac38889a1 100644 --- a/components/fpspreadsheet/source/common/fpsexprparser.pas +++ b/components/fpspreadsheet/source/common/fpsexprparser.pas @@ -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