From: Vadim Zeitlin Date: Mon, 6 Aug 2001 19:29:47 +0000 (+0000) Subject: don't draw the focused item rect around the image X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/837f2b68727278f7b913e424709678ca6b8dd115?hp=c25f61f16abe18f91e5684964ea3d9e638043a69 don't draw the focused item rect around the image git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11307 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/treectlg.cpp b/src/generic/treectlg.cpp index 9f70f1240a..0b9e91d4e2 100644 --- a/src/generic/treectlg.cpp +++ b/src/generic/treectlg.cpp @@ -1804,7 +1804,7 @@ void wxGenericTreeCtrl::PaintItem(wxGenericTreeItem *item, wxDC& dc) int offset = HasFlag(wxTR_ROW_LINES) ? 1 : 0; - if ( paintBg && image != NO_IMAGE) + if ( item->IsSelected() && image != NO_IMAGE) { // If it's selected, and there's an image, then we should // take care to leave the area under the image painted in the