treeview invalidation fix

Mike Hearn m.hearn at signal.qinetiq.com
Tue Mar 25 06:24:31 CST 2003


ChangeLog:

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

thanks -mike
-------------- next part --------------
--- dlls/comctl32/treeview.c.old	2003-03-25 12:21:12.000000000 +0000
+++ dlls/comctl32/treeview.c	2003-03-25 12:21:19.000000000 +0000
@@ -2043,13 +2043,13 @@
 
     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))


More information about the wine-patches mailing list