summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGES2
-rw-r--r--src/Fl_Browser.cxx6
2 files changed, 5 insertions, 3 deletions
diff --git a/CHANGES b/CHANGES
index 2b9a96628..ae3f699c7 100644
--- a/CHANGES
+++ b/CHANGES
@@ -4,6 +4,8 @@ CHANGES IN FLTK 1.1.8
STR #1457, STR #1458, STR #1460, STR #1481, STR #1578,
STR #1639, STR #1645, STR #1644, STR #1792, STR #1793,
STR #1742, STR #1777)
+ - Fl_Browser::hide() and Fl_Browser::show() did not
+ correctly update the scrollbar (STR #1724)
- The configure script now shows a summry of the
configuration results (STR #1810)
- "fltk-config --use-* --libs" did not list all of the
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();
}
}