mirror of
				https://gitlab.com/freepascal.org/fpc/source.git
				synced 2025-11-04 06:59:33 +01:00 
			
		
		
		
	* Fix bug in event-based variables
git-svn-id: trunk@33986 -
This commit is contained in:
		
							parent
							
								
									638339812e
								
							
						
					
					
						commit
						15c5ea3b9c
					
				@ -2836,6 +2836,8 @@ end;
 | 
			
		||||
 | 
			
		||||
Procedure TFPExprIdentifierNode.GetNodeValue(var Result : TFPExpressionResult);
 | 
			
		||||
begin
 | 
			
		||||
  if Identifier.EventBasedVariable then
 | 
			
		||||
    Identifier.FetchValue;
 | 
			
		||||
  Result:=PResult^;
 | 
			
		||||
  Result.ResultType:=FResultType;
 | 
			
		||||
end;
 | 
			
		||||
@ -2861,7 +2863,9 @@ Var
 | 
			
		||||
 | 
			
		||||
begin
 | 
			
		||||
  For I:=0 to Length(FArgumentParams)-1 do
 | 
			
		||||
    begin
 | 
			
		||||
    FArgumentNodes[i].GetNodeValue(FArgumentParams[i]);
 | 
			
		||||
    end;
 | 
			
		||||
end;
 | 
			
		||||
 | 
			
		||||
procedure TFPExprFunction.Check;
 | 
			
		||||
@ -2942,6 +2946,7 @@ Procedure TFPFunctionCallBack.GetNodeValue(var Result : TFPExpressionResult);
 | 
			
		||||
begin
 | 
			
		||||
  If Length(FArgumentParams)>0 then
 | 
			
		||||
    CalcParams;
 | 
			
		||||
 | 
			
		||||
  FCallBack(Result,FArgumentParams);
 | 
			
		||||
  Result.ResultType:=NodeType;
 | 
			
		||||
end;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user