* Handle case when HeaderHotColor is clDefault

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4409 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
blikblum
2015-12-29 18:55:55 +00:00
parent e51bdb3e3a
commit 286d9b5de4

View File

@ -7548,12 +7548,9 @@ begin
if Hot then
TextColor := FHeader.Treeview.FColors.HeaderHotColor
else
begin
if FHeader.FFont.Color = clDefault then
TextColor := clCaptionText
else
TextColor := FHeader.FFont.Color;
end;
TextColor := FHeader.FFont.Color;
if TextColor = clDefault then
TextColor := clCaptionText;
SetTextColor(DC, ColorToRGB(TextColor));
DrawText(DC, PChar(Caption), Length(Caption), Bounds, DrawFormat);
end;