X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/837f2b68727278f7b913e424709678ca6b8dd115..625cb8c0b1ac12f26265cae2c69d7f510de0edb1:/src/generic/treectlg.cpp?ds=inline diff --git a/src/generic/treectlg.cpp b/src/generic/treectlg.cpp index 0b9e91d4e2..ed745c827f 100644 --- a/src/generic/treectlg.cpp +++ b/src/generic/treectlg.cpp @@ -1916,23 +1916,20 @@ void wxGenericTreeCtrl::PaintLevel( wxGenericTreeItem *item, wxDC &dc, int level } } - wxPen *pen = wxTRANSPARENT_PEN; - wxColour colText; - + wxPen *pen; +#ifndef __WXMAC__ + // don't draw rect outline if we already have the background color + // under Max if ( item->IsSelected() ) - { pen = wxBLACK_PEN; - - if ( m_hasFocus ) - { - colText = wxSystemSettings:: - GetSystemColour( wxSYS_COLOUR_HIGHLIGHTTEXT ); - } - -#ifdef __WXMAC__ - // no rect outline, we already have the background color + else +#endif // !__WXMAC__ pen = wxTRANSPARENT_PEN; -#endif + + wxColour colText; + if ( item->IsSelected() && m_hasFocus ) + { + colText = wxSystemSettings::GetSystemColour( wxSYS_COLOUR_HIGHLIGHTTEXT ); } else {