listview: compute metrics when we have some items

Dimitrie O. Paun dpaun at rogers.com
Sun Feb 9 01:56:33 CST 2003


ChangeLog
  Compute matrix of first paint when we actually have some items.
  (Problem first spotted & debugged by Duane Clark).

Index: dlls/comctl32/listview.c
===================================================================
RCS file: /var/cvs/wine/dlls/comctl32/listview.c,v
retrieving revision 1.338
diff -u -r1.338 listview.c
--- dlls/comctl32/listview.c	24 Jan 2003 00:54:59 -0000	1.338
+++ dlls/comctl32/listview.c	5 Feb 2003 06:48:41 -0000
@@ -7850,7 +7850,7 @@
 {
     TRACE("(hdc=%p)\n", hdc);
 
-    if (infoPtr->bFirstPaint)
+    if (infoPtr->bFirstPaint && infoPtr->nItemCount)
     {
 	UINT uView =  infoPtr->dwStyle & LVS_TYPEMASK;
 	



-- 
Dimi.




More information about the wine-patches mailing list