Listview U5

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This should fix the bug reported by Christian Neumair

ChangeLog
  Do not create a range list for an empty range.

--- dlls/comctl32/listview.c.U4	Sat Oct 19 12:26:57 2002
+++ dlls/comctl32/listview.c	Sat Oct 19 12:32:01 2002
@@ -1013,7 +1013,7 @@
     if (rgntype == NULLREGION) return iterator_empty(i);
     if (!iterator_frameditems(i, infoPtr, &rcClip)) return FALSE;
     if (rgntype == SIMPLEREGION) return TRUE;
- 
+
     /* first deal with the special item */
     if (LISTVIEW_GetItemBox(infoPtr, i->nSpecial, &rcItem) && !RectVisible(hdc, &rcItem))
 	i->nSpecial = -1;
@@ -1021,7 +1021,7 @@
     /* if we can't deal with the region, we'll just go with the simple range */
     if (!LISTVIEW_GetOrigin(infoPtr, &Origin)) return TRUE;
     TRACE("building visible range:\n");
-    if (!i->ranges)
+    if (!i->ranges && i->range.lower < i->range.upper)
     {
 	if (!(i->ranges = ranges_create(50))) return TRUE;
 	if (!ranges_add(i->ranges, i->range))



[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux