[1/2] comctl32/listview: Scrolling affects subitem rect. (Bug 21898)

Dylan Smith dylan.ah.smith at gmail.com
Wed Mar 3 01:38:39 CST 2010


This fixes a regression caused by commit
3cd15e5db5b9b89abbc3d5a7a16b62ce28eed153

The regression fixed some tests by not offsetting subitem rectangles by
the item padding, but it also removed the affects of scrolling on the
subitem rect.
---
 dlls/comctl32/listview.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c
index 2d39675..9afbf10 100644
--- a/dlls/comctl32/listview.c
+++ b/dlls/comctl32/listview.c
@@ -6873,7 +6873,7 @@ static BOOL LISTVIEW_GetSubItemRect(const LISTVIEW_INFO *infoPtr, INT nItem, LPR
 	return FALSE;
     }
 
-    OffsetRect(lprc, 0, Position.y);
+    OffsetRect(lprc, Position.x - REPORT_MARGINX, Position.y);
     return TRUE;
 }
 
-- 
1.6.3.3




More information about the wine-patches mailing list