lcl: do not set font color if treeview isn't focused

git-svn-id: trunk@24853 -
This commit is contained in:
zeljko 2010-04-23 14:23:24 +00:00
parent 92b400b9d8
commit 09124bd436

View File

@ -4528,8 +4528,8 @@ var
else
Details := ThemeServices.GetElementDetails(ttItemNormal);
if ((tvoThemedDraw in Options) or
(tvoRowSelect in Options)) and IsSelected then
if ( (tvoThemedDraw in Options) or
(tvoRowSelect in Options) ) and Focused and IsSelected then
Canvas.Font.Color := InvertColor(Brush.Color);
ThemeServices.DrawText(Canvas, Details, AText, NodeRect, DT_CENTER or DT_VCENTER, 0);