From: Vadim Zeitlin Date: Mon, 20 Aug 2001 15:22:15 +0000 (+0000) Subject: fixed text fg colour for selected but unfocused items X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/de57703a0c1fa1c60e4b6b1d07d106f07e080b0c fixed text fg colour for selected but unfocused items git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11424 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/treectlg.cpp b/src/generic/treectlg.cpp index f2b3ca9dde..370cbab695 100644 --- a/src/generic/treectlg.cpp +++ b/src/generic/treectlg.cpp @@ -2018,7 +2018,7 @@ void wxGenericTreeCtrl::PaintLevel( wxGenericTreeItem *item, wxDC &dc, int level wxTRANSPARENT_PEN; wxColour colText; - if (item->IsSelected() && m_hasFocus) + if ( item->IsSelected() ) { colText = wxSystemSettings::GetSystemColour(wxSYS_COLOUR_HIGHLIGHTTEXT); }