From 36402b7fe5ed6aa6912e80f05186a24cbc48cea2 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Thu, 24 Feb 2005 20:17:08 +0000 Subject: 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 --- CHANGES | 2 ++ src/Fl_Browser.cxx | 7 +++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/CHANGES b/CHANGES index 4cb2f5646..aec6cdfc5 100644 --- a/CHANGES +++ b/CHANGES @@ -1,6 +1,8 @@ CHANGES IN FLTK 1.1.7 - 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 under the mouse pointer and then to the first widget which accepts them. This is similar to the way diff --git a/src/Fl_Browser.cxx b/src/Fl_Browser.cxx index f2dae5f5e..70b729067 100644 --- a/src/Fl_Browser.cxx +++ b/src/Fl_Browser.cxx @@ -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). // @@ -534,8 +534,7 @@ void Fl_Browser::swap(FL_BLINE *a, FL_BLINE *b) { // Disable cache -- we played around with positions cacheline = 0; // Redraw modified lines - redraw_line(a); - redraw_line(b); + redraw_lines(); } 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$". // -- cgit v1.2.3