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
This commit is contained in:
Vadim Zeitlin
2001-08-06 19:29:47 +00:00
parent c25f61f16a
commit 837f2b6872

View File

@@ -1804,7 +1804,7 @@ void wxGenericTreeCtrl::PaintItem(wxGenericTreeItem *item, wxDC& dc)
int offset = HasFlag(wxTR_ROW_LINES) ? 1 : 0; 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 // If it's selected, and there's an image, then we should
// take care to leave the area under the image painted in the // take care to leave the area under the image painted in the