From b8bc24764ebec8a19e0a61f0e1f2b2843be22d70 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Tue, 28 Mar 2006 23:27:20 +0000 Subject: STR 1183: swapping two items in an Fl_Browser_ widget would corrupt redrawing if either item was "top". This fix swaps the top_ variable correctly, and also swaps the selection flag as the user would expect. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4879 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- FL/Fl_Browser_.H | 1 + 1 file changed, 1 insertion(+) (limited to 'FL/Fl_Browser_.H') diff --git a/FL/Fl_Browser_.H b/FL/Fl_Browser_.H index 062759679..663eca55e 100644 --- a/FL/Fl_Browser_.H +++ b/FL/Fl_Browser_.H @@ -88,6 +88,7 @@ protected: void new_list(); // completely clobber all data, as though list replaced void deleting(void *a); // get rid of any pointers to a void replacing(void *a,void *b); // change a pointers to b + void swapping(void *a,void *b); // exchange pointers a and b void inserting(void *a,void *b); // insert b near a int displayed(void *) const ; // true if this line is visible void redraw_line(void *); // minimal update, no change in size -- cgit v1.2.3