Piotr Caban : comctl32: Fix area invalidated by LISTVIEW_SetItemT.
Module: wine Branch: master Commit: 1a67903b04001c7064f6e4705a66dc3cfa47feed URL: http://source.winehq.org/git/wine.git/?a=commit;h=1a67903b04001c7064f6e4705a... Author: Piotr Caban <piotr(a)codeweavers.com> Date: Mon Jun 20 12:46:37 2011 +0200 comctl32: Fix area invalidated by LISTVIEW_SetItemT. --- dlls/comctl32/listview.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c index 1b35c06..119e685 100644 --- a/dlls/comctl32/listview.c +++ b/dlls/comctl32/listview.c @@ -4374,6 +4374,9 @@ static BOOL LISTVIEW_SetItemT(LISTVIEW_INFO *infoPtr, LVITEMW *lpLVItem, BOOL is if (!lpLVItem || lpLVItem->iItem < 0 || lpLVItem->iItem >= infoPtr->nItemCount) return FALSE; + /* Invalidate old item area */ + LISTVIEW_InvalidateItem(infoPtr, lpLVItem->iItem); + /* For efficiency, we transform the lpLVItem->pszText to Unicode here */ if ((lpLVItem->mask & LVIF_TEXT) && is_text(lpLVItem->pszText)) {
participants (1)
-
Alexandre Julliard