From: Robin Dunn Date: Wed, 11 Oct 2006 23:54:08 +0000 (+0000) Subject: Don't use the window position as the x offset when painting the full X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/369be443aa958ebce00f4d112f96ed7fa14c39b6 Don't use the window position as the x offset when painting the full row highlight, always use zero. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41961 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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)