From 7e6874c01461f87d3ac7e454973a91d743942e4c 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/trunk@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 ea8d28ff9e..bf85914d4c 100644 --- a/src/generic/listctrl.cpp +++ b/src/generic/listctrl.cpp @@ -4914,6 +4914,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; } -- 2.50.0