mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 22:59:15 +02:00
cocoa: added explicit typecast of TColor to ColorRef to prevent range check error
git-svn-id: trunk@46087 -
This commit is contained in:
parent
5da45bf864
commit
f02f832da7
@ -1574,7 +1574,7 @@ begin
|
||||
cg := CGContext;
|
||||
if not Assigned(cg) then Exit;
|
||||
|
||||
fillbrush:=TCocoaBrush.Create(ColorToNSColor(AColor));
|
||||
fillbrush:=TCocoaBrush.Create(ColorToNSColor(ColorRef(AColor)));
|
||||
fillbrush.Apply(self);
|
||||
|
||||
r.origin.x:=x;
|
||||
|
Loading…
Reference in New Issue
Block a user