From dd24e5de8c3a8e1241b8c3dca881ec941e3cf709 Mon Sep 17 00:00:00 2001 From: Nikolay Sivov Date: Fri, 29 May 2009 00:47:25 +0400 Subject: [PATCH] comctl32/listview: Fix regression on LVIR_BOUNDS request - y offset still needed. --- dlls/comctl32/listview.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c index fb1828ea2e1..92bab296233 100644 --- a/dlls/comctl32/listview.c +++ b/dlls/comctl32/listview.c @@ -5990,7 +5990,7 @@ static BOOL LISTVIEW_GetItemRect(const LISTVIEW_INFO *infoPtr, INT nItem, LPRECT } if ((uView == LVS_REPORT) && (type == LVIR_BOUNDS)) - OffsetRect(lprc, Origin.x, Origin.y); + OffsetRect(lprc, Origin.x, Position.y + Origin.y); else OffsetRect(lprc, Position.x + Origin.x, Position.y + Origin.y); @@ -6543,7 +6543,7 @@ static INT LISTVIEW_HitTest(const LISTVIEW_INFO *infoPtr, LPLVHITTESTINFO lpht, INT j; /* for top/bottom only */ - bounds.left = 0; + bounds.left = LVIR_BOUNDS; LISTVIEW_GetItemRect(infoPtr, iItem, &bounds); for (j = 0; j < DPA_GetPtrCount(infoPtr->hdpaColumns); j++)