From c71bb017ee265d6d3c28dc263bc6b116b441dc28 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Thu, 8 May 2003 02:17:52 +0000 Subject: [PATCH] Fix GetItemRect to offset by the header window, if present. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20546 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/listctrl.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/generic/listctrl.cpp b/src/generic/listctrl.cpp index ea38969936..0abedd0948 100644 --- a/src/generic/listctrl.cpp +++ b/src/generic/listctrl.cpp @@ -4865,6 +4865,8 @@ bool wxGenericListCtrl::SetItemData( long item, long data ) bool wxGenericListCtrl::GetItemRect( long item, wxRect &rect, int WXUNUSED(code) ) const { m_mainWin->GetItemRect( item, rect ); + if ( m_mainWin->HasHeader() ) + rect.y += HEADER_HEIGHT + 1; return TRUE; }