cocoa: replacing the setting of nil color to controlTextColor to prevent crashes on MacOSX 10.6

git-svn-id: trunk@63870 -
This commit is contained in:
dmitry 2020-09-07 00:14:53 +00:00
parent a1dc800a66
commit c8f3c6f723

View File

@ -1787,7 +1787,7 @@ begin
if Obj.respondsToSelector(ObjCSelector('setTextColor:')) then
begin
if AFont.Color = clDefault then
Obj.setTextColor(nil)
Obj.setTextColor(NSColor.controlTextColor)
else
Obj.setTextColor(ColorToNSColor(ColorToRGB(AFont.Color)));
end;