You've already forked lazarus-ccr
fpspreadsheet: Fix formula parser error in binary math operations of cell references (incorrect usage of integer instead of floating point values).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4110 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -3325,8 +3325,8 @@ begin
|
||||
exit;
|
||||
end;
|
||||
|
||||
if (Result.ResultType in [rtInteger, rtCell, rtEmpty]) and
|
||||
(RRes.ResultType in [rtInteger, rtCell, rtEmpty])
|
||||
if (Result.ResultType in [rtInteger, {rtCell, }rtEmpty]) and
|
||||
(RRes.ResultType in [rtInteger, {rtCell, }rtEmpty])
|
||||
then
|
||||
Result := IntegerResult(ArgToInt(Result) + ArgToInt(RRes))
|
||||
else
|
||||
@ -3368,8 +3368,8 @@ begin
|
||||
exit;
|
||||
end;
|
||||
|
||||
if (Result.ResultType in [rtInteger, rtCell, rtEmpty]) and
|
||||
(RRes.ResultType in [rtInteger, rtCell, rtEmpty])
|
||||
if (Result.ResultType in [rtInteger, {rtCell, }rtEmpty]) and
|
||||
(RRes.ResultType in [rtInteger, {rtCell, }rtEmpty])
|
||||
then
|
||||
Result := IntegerResult(ArgToInt(Result) - ArgToInt(RRes))
|
||||
else
|
||||
@ -3411,8 +3411,8 @@ begin
|
||||
exit;
|
||||
end;
|
||||
|
||||
if (Result.ResultType in [rtInteger, rtCell, rtEmpty]) and
|
||||
(RRes.ResultType in [rtInteger, rtCell, rtEmpty])
|
||||
if (Result.ResultType in [rtInteger, {rtCell, }rtEmpty]) and
|
||||
(RRes.ResultType in [rtInteger, {rtCell, }rtEmpty])
|
||||
then
|
||||
Result := IntegerResult(ArgToInt(Result) * ArgToInt(RRes))
|
||||
else
|
||||
|
Reference in New Issue
Block a user