Listview M15

Dimitrie O. Paun dpaun at rogers.com
Wed Oct 9 17:56:03 CDT 2002


This should probably be batched with M14 on checkin.

ChangeLog
  Fix thinko introduced in M14.

--- dlls/comctl32/listview.c.M14	Wed Oct  9 18:06:59 2002
+++ dlls/comctl32/listview.c	Wed Oct  9 18:53:55 2002
@@ -3494,9 +3494,9 @@
     /* we now narrow the columns as well */
     nLastCol = nColumnCount - 1;
     for(nFirstCol = 0; nFirstCol < nColumnCount; nFirstCol++)
-	if (lpCols[nFirstCol].rc.right >= rcClip.left) break;
+	if (lpCols[nFirstCol].rc.right + ptOrig.x >= rcClip.left) break;
     for(nLastCol = nColumnCount - 1; nLastCol >= 0; nLastCol--)
-	if (lpCols[nLastCol].rc.left < rcClip.right) break;
+	if (lpCols[nLastCol].rc.left + ptOrig.x < rcClip.right) break;
 
     /* cache the per-column information before we start drawing */
     for (j = nFirstCol; j <= nLastCol; j++)




More information about the wine-patches mailing list