From d22956def712d1e823fbc68c09231f6dba817a87 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Tue, 28 Sep 2004 19:49:00 +0000 Subject: [PATCH] off-by-one fix git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29508 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/contrib/gizmos/wxCode/src/treelistctrl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wxPython/contrib/gizmos/wxCode/src/treelistctrl.cpp b/wxPython/contrib/gizmos/wxCode/src/treelistctrl.cpp index ad47a548e2..260d264ff7 100644 --- a/wxPython/contrib/gizmos/wxCode/src/treelistctrl.cpp +++ b/wxPython/contrib/gizmos/wxCode/src/treelistctrl.cpp @@ -1294,7 +1294,7 @@ void wxTreeListHeaderWindow::OnPaint( wxPaintEvent &WXUNUSED(event) ) { //DoDrawRect( &dc, x, HEADER_OFFSET_Y, more_w, h-2 ); wxRendererNative::Get().DrawHeaderButton( - this, dc, wxRect(x, HEADER_OFFSET_Y, more_w, h-3), + this, dc, wxRect(x, HEADER_OFFSET_Y, more_w, h-2), m_parent->IsEnabled() ? 0 : wxCONTROL_DISABLED); }