X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2356118e69003597d7293242b48487d8354dd598..5df663afecdfe2db0447064ea64a4dd8ecbbf889:/wxPython/wx/lib/customtreectrl.py diff --git a/wxPython/wx/lib/customtreectrl.py b/wxPython/wx/lib/customtreectrl.py index 75d792258c..1dfcde6193 100644 --- a/wxPython/wx/lib/customtreectrl.py +++ b/wxPython/wx/lib/customtreectrl.py @@ -4271,8 +4271,8 @@ class CustomTreeCtrl(wx.PyScrolledWindow): dc.DrawRectangleRect(itemrect) else: - - if item.IsSelected() and image != _NO_IMAGE: + + if item.IsSelected(): # If it's selected, and there's an image, then we should # take care to leave the area under the image painted in the