diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2007-11-20 21:57:17 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2007-11-20 21:57:17 +0000 |
| commit | 034a26be4149eaa3af06ce01ef517847f326745b (patch) | |
| tree | a58165bff414349f51f6586afeb534c87ad25edf /src | |
| parent | 6208077d2ab95b14e507b6713daa6b162d097365 (diff) | |
Update scrollbars when showing or hiding items (STR #1724)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5987 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_Browser.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Fl_Browser.cxx b/src/Fl_Browser.cxx index 8ff1f9a72..669e06a9c 100644 --- a/src/Fl_Browser.cxx +++ b/src/Fl_Browser.cxx @@ -3,7 +3,7 @@ // // Browser widget for the Fast Light Tool Kit (FLTK). // -// Copyright 1998-2005 by Bill Spitzak and others. +// Copyright 1998-2007 by Bill Spitzak and others. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Library General Public @@ -472,7 +472,7 @@ void Fl_Browser::show(int line) { if (t->flags & NOTDISPLAYED) { t->flags &= ~NOTDISPLAYED; full_height_ += item_height(t); - if (Fl_Browser_::displayed(t)) redraw_lines(); + if (Fl_Browser_::displayed(t)) redraw(); } } @@ -481,7 +481,7 @@ void Fl_Browser::hide(int line) { if (!(t->flags & NOTDISPLAYED)) { full_height_ -= item_height(t); t->flags |= NOTDISPLAYED; - if (Fl_Browser_::displayed(t)) redraw_lines(); + if (Fl_Browser_::displayed(t)) redraw(); } } |
