Commit dd24e5de authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

comctl32/listview: Fix regression on LVIR_BOUNDS request - y offset still needed.

parent 4b73240a
...@@ -5990,7 +5990,7 @@ static BOOL LISTVIEW_GetItemRect(const LISTVIEW_INFO *infoPtr, INT nItem, LPRECT ...@@ -5990,7 +5990,7 @@ static BOOL LISTVIEW_GetItemRect(const LISTVIEW_INFO *infoPtr, INT nItem, LPRECT
} }
if ((uView == LVS_REPORT) && (type == LVIR_BOUNDS)) if ((uView == LVS_REPORT) && (type == LVIR_BOUNDS))
OffsetRect(lprc, Origin.x, Origin.y); OffsetRect(lprc, Origin.x, Position.y + Origin.y);
else else
OffsetRect(lprc, Position.x + Origin.x, Position.y + Origin.y); OffsetRect(lprc, Position.x + Origin.x, Position.y + Origin.y);
...@@ -6543,7 +6543,7 @@ static INT LISTVIEW_HitTest(const LISTVIEW_INFO *infoPtr, LPLVHITTESTINFO lpht, ...@@ -6543,7 +6543,7 @@ static INT LISTVIEW_HitTest(const LISTVIEW_INFO *infoPtr, LPLVHITTESTINFO lpht,
INT j; INT j;
/* for top/bottom only */ /* for top/bottom only */
bounds.left = 0; bounds.left = LVIR_BOUNDS;
LISTVIEW_GetItemRect(infoPtr, iItem, &bounds); LISTVIEW_GetItemRect(infoPtr, iItem, &bounds);
for (j = 0; j < DPA_GetPtrCount(infoPtr->hdpaColumns); j++) for (j = 0; j < DPA_GetPtrCount(infoPtr->hdpaColumns); j++)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment