LCL: fixed test for new value in Timer.SetOnTimer (bug #9078)

git-svn-id: trunk@11449 -
This commit is contained in:
vincents 2007-07-09 11:16:49 +00:00
parent abc335dd5a
commit 8b59cbf44e

View File

@ -161,7 +161,8 @@ end;
------------------------------------------------------------------------------}
procedure TCustomTimer.SetOnTimer (value : TNotifyEvent);
begin
if Value=FOnTimer then exit;
// Value=FOnTimer only compares code part
if CompareByte(Value,FOnTimer,SizeOf(Value))=0 then exit;
FOnTimer := value;
UpdateTimer;
end;