From: Robin Dunn Date: Tue, 28 Sep 2004 19:49:00 +0000 (+0000) Subject: off-by-one fix X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/d22956def712d1e823fbc68c09231f6dba817a87?ds=sidebyside off-by-one fix git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29508 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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); }