SetOnDrawPoint fix.

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9264 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
alpine-a110 2024-03-04 13:31:34 +00:00
parent c56c859c68
commit d85d2a6abd

View File

@ -653,7 +653,8 @@ end;
procedure TPointOfInterest.SetOnDrawPoint(AValue: TPointOfInterestDrawEvent);
begin
// if FOnDrawPoint=AValue then Exit; // Troubles the object inspector
if CompareMem(@FOnDrawPoint, @AValue, SizeOf(TMethod)) then
Exit;
FOnDrawPoint := AValue;
if Assigned(FOnDrawPoint)
then FPoint.OnDrawObj := @DrawPoint