DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Link: http://www.fltk.org/str.php?L2300
Version: 1.3-current





Link: http://www.fltk.org/str.php?L2300
Version: 1.3-current
diff -Nru fltk-1.3.x-r6970/src/Fl_Browser_.cxx 
fltk-1.3.x-r6970-patched/src/Fl_Browser_.cxx
--- fltk-1.3.x-r6970/src/Fl_Browser_.cxx        2009-04-02 14:44:34.000000000 
+0800
+++ fltk-1.3.x-r6970-patched/src/Fl_Browser_.cxx        2009-12-22 
19:56:11.000000000 +0800
@@ -962,7 +962,7 @@
     a = item_next(a);
     n++;
   }
-  for (i=n-1; i>0; i--) {
+  for (i=n; i>0; i--) {
     char swapped = 0;
     a = item_first();
     b = item_next(a);
@@ -981,6 +981,7 @@
           swapped = 1;
         }
       }
+      if(!c) break;
       b = c; a = item_prev(b);
     }
     if (!swapped)
_______________________________________________
fltk-bugs mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-bugs

Reply via email to