Fl_Browser::swap() didn't handle redraws properly when the

swapped lines had different heights (STR #729)

src/Fl_Browser.cxx:
    - Fl_Browser::swap(): call redraw_lines() instead of
      redrawing individual lines.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4046 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Michael R Sweet
2005-02-24 20:17:08 +00:00
parent 5b0aae2e87
commit 36402b7fe5
2 changed files with 5 additions and 4 deletions
+2
View File
@@ -1,6 +1,8 @@
CHANGES IN FLTK 1.1.7 CHANGES IN FLTK 1.1.7
- Documentation fixes (STR #648, STR #692) - Documentation fixes (STR #648, STR #692)
- Fl_Browser::swap() didn't handle redraws properly when
the swapped lines had different heights (STR #729)
- FL_MOUSEWHEEL events are now sent first to the widget - FL_MOUSEWHEEL events are now sent first to the widget
under the mouse pointer and then to the first widget under the mouse pointer and then to the first widget
which accepts them. This is similar to the way which accepts them. This is similar to the way
+3 -4
View File
@@ -1,5 +1,5 @@
// //
// "$Id: Fl_Browser.cxx,v 1.9.2.12.2.13 2004/11/20 03:19:58 easysw Exp $" // "$Id$"
// //
// Browser widget for the Fast Light Tool Kit (FLTK). // Browser widget for the Fast Light Tool Kit (FLTK).
// //
@@ -534,8 +534,7 @@ void Fl_Browser::swap(FL_BLINE *a, FL_BLINE *b) {
// Disable cache -- we played around with positions // Disable cache -- we played around with positions
cacheline = 0; cacheline = 0;
// Redraw modified lines // Redraw modified lines
redraw_line(a); redraw_lines();
redraw_line(b);
} }
void Fl_Browser::swap(int ai, int bi) { void Fl_Browser::swap(int ai, int bi) {
@@ -546,5 +545,5 @@ void Fl_Browser::swap(int ai, int bi) {
} }
// //
// End of "$Id: Fl_Browser.cxx,v 1.9.2.12.2.13 2004/11/20 03:19:58 easysw Exp $". // End of "$Id$".
// //