You've already forked lazarus-ccr
fpspreadsheet: Fix priority of percent operator for formula calculation
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3531 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -1552,6 +1552,10 @@ begin
|
||||
Result := TsUPlusExprNode.Create(self, Result);
|
||||
if isMinus then
|
||||
Result := TsUMinusExprNode.Create(self, Result);
|
||||
if TokenType = ttPercent then begin
|
||||
Result := TsPercentExprNode.Create(self, Result);
|
||||
GetToken;
|
||||
end;
|
||||
end;
|
||||
|
||||
function TsExpressionParser.Level6: TsExprNode;
|
||||
@ -1740,10 +1744,6 @@ begin
|
||||
end;
|
||||
end;
|
||||
GetToken;
|
||||
if TokenType = ttPercent then begin
|
||||
Result := TsPercentExprNode.Create(self, Result);
|
||||
GetToken;
|
||||
end;
|
||||
end;
|
||||
|
||||
function TsExpressionParser.ResultType: TsResultType;
|
||||
|
Reference in New Issue
Block a user