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
This commit is contained in:
Robin Dunn 2006-10-11 23:54:08 +00:00
parent 848e071ac2
commit 369be443aa

View 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)