mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-09 09:48:36 +02:00
LCL: fixed test for new value in Timer.SetOnTimer (bug #9078)
git-svn-id: trunk@11449 -
This commit is contained in:
parent
abc335dd5a
commit
8b59cbf44e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user