Don't use the window position as the x offset when painting the full
authorRobin Dunn <robin@alldunn.com>
Wed, 11 Oct 2006 23:54:08 +0000 (23:54 +0000)
committerRobin Dunn <robin@alldunn.com>
Wed, 11 Oct 2006 23:54:08 +0000 (23:54 +0000)
row highlight, always use zero.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41961 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/wx/lib/customtreectrl.py

index 1616f48adbcf55f63e7bb6e0a7f07729a9b7eaea..ae7b8cd69e6d73c9837cfa14f119026b6e30a03c 100644 (file)
@@ -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)