comctl32/listview: Fix subitem invalidation.
It's wrong to offset by item position, columns could be reordered. Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
9316d8ae86
commit
4a8a8bddda
|
@ -1753,7 +1753,7 @@ static inline void LISTVIEW_InvalidateSubItem(const LISTVIEW_INFO *infoPtr, INT
|
|||
LISTVIEW_GetHeaderRect(infoPtr, nSubItem, &rcBox);
|
||||
rcBox.top = 0;
|
||||
rcBox.bottom = infoPtr->nItemHeight;
|
||||
OffsetRect(&rcBox, Origin.x + Position.x, Origin.y + Position.y);
|
||||
OffsetRect(&rcBox, Origin.x, Origin.y + Position.y);
|
||||
LISTVIEW_InvalidateRect(infoPtr, &rcBox);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue