mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-07 21:41:34 +02:00
carbon: make GetClipRGN safer
git-svn-id: trunk@21132 -
This commit is contained in:
parent
5151e1c5ea
commit
1d4cd359c5
@ -1487,7 +1487,9 @@ end;
|
||||
|
||||
function TCarbonDeviceContext.CopyClipRegion(ADstRegion: TCarbonRegion): Integer;
|
||||
begin
|
||||
Result := ADstRegion.CombineWith(FClipRegion, RGN_COPY);
|
||||
if Assigned(ADstRegion)
|
||||
then Result := ADstRegion.CombineWith(FClipRegion, RGN_COPY)
|
||||
else Result := LCLType.Error;
|
||||
end;
|
||||
|
||||
{ TCarbonScreenContext }
|
||||
|
Loading…
Reference in New Issue
Block a user