cocoa: added explicit typecast of TColor to ColorRef to prevent range check error

git-svn-id: trunk@46087 -
This commit is contained in:
dmitry 2014-08-29 05:44:16 +00:00
parent 5da45bf864
commit f02f832da7

View File

@ -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;