Correct the check for changed treeview items, so item sets repaint

properly.
This commit is contained in:
Mike Hearn 2003-03-26 01:22:10 +00:00 committed by Alexandre Julliard
parent 78675ba234
commit 044a353161
1 changed files with 3 additions and 3 deletions

View File

@ -2043,13 +2043,13 @@ TREEVIEW_SetItemA(TREEVIEW_INFO *infoPtr, LPTVITEMEXA tvItem)
if (!TREEVIEW_ValidItem(infoPtr, wineItem))
return FALSE;
/* store the orignal item values */
originalItem = *wineItem;
if (!TREEVIEW_DoSetItem(infoPtr, wineItem, tvItem))
return FALSE;
/* store the orignal item values */
originalItem = *wineItem;
/* If the text or TVIS_BOLD was changed, and it is visible, recalculate. */
if ((tvItem->mask & TVIF_TEXT
|| (tvItem->mask & TVIF_STATE && tvItem->stateMask & TVIS_BOLD))