]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/wx/lib/customtreectrl.py
close the file before removing it
[wxWidgets.git] / wxPython / wx / lib / customtreectrl.py
index 34a79ba748eb27785f162c5da5f94b13ca3b730b..1dfcde6193f43797a8a103750862d4dd16923ba6 100644 (file)
@@ -3443,7 +3443,7 @@ class CustomTreeCtrl(wx.PyScrolledWindow):
         if not item:
             raise "\nERROR: Invalid Tree Item. "
         
-        if not self.HasFlag(TR_HIDE_ROOT) or item != GetRootItem():
+        if not self.HasFlag(TR_HIDE_ROOT) or item != self.GetRootItem():
             self.Expand(item)
             if not self.IsExpanded(item):
                 return
@@ -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