diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2005-02-24 20:17:08 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2005-02-24 20:17:08 +0000 |
| commit | 36402b7fe5ed6aa6912e80f05186a24cbc48cea2 (patch) | |
| tree | db061d4a54b03bb911c66911d857f9a33e435dfc | |
| parent | 5b0aae2e871fac79f58572b7e8f68a5bbd3d0914 (diff) | |
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
| -rw-r--r-- | CHANGES | 2 | ||||
| -rw-r--r-- | src/Fl_Browser.cxx | 7 |
2 files changed, 5 insertions, 4 deletions
@@ -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$". // |
