X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c8f129d0675af4f473f92b90aeb187c90e4053c9..122c2bae32138468f1da8bd78d6166bff19de3d1:/wxPython/wx/lib/customtreectrl.py diff --git a/wxPython/wx/lib/customtreectrl.py b/wxPython/wx/lib/customtreectrl.py index 1616f48adb..ae7b8cd69e 100644 --- a/wxPython/wx/lib/customtreectrl.py +++ b/wxPython/wx/lib/customtreectrl.py @@ -1929,7 +1929,6 @@ class CustomTreeCtrl(wx.ScrolledWindow): # with associated widgets. self.SetFocus() - return True def OnDestroy(self, event): @@ -4249,7 +4248,7 @@ class CustomTreeCtrl(wx.ScrolledWindow): oldpen = dc.GetPen() dc.SetPen(wx.TRANSPARENT_PEN) - x, y = self.GetPosition() + x = 0 w, h = self.GetSize() itemrect = wx.Rect(x, item.GetY()+offset, w, total_h-offset)