diff --git a/components/virtualtreeview-new/branches/4.8/VirtualTrees.pas b/components/virtualtreeview-new/branches/4.8/VirtualTrees.pas index 9412505c3..f680e609d 100644 --- a/components/virtualtreeview-new/branches/4.8/VirtualTrees.pas +++ b/components/virtualtreeview-new/branches/4.8/VirtualTrees.pas @@ -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;