mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 13:59:31 +02:00
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:
parent
a1dc800a66
commit
c8f3c6f723
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user