summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGES2
-rw-r--r--src/Fl_Browser_.cxx1
2 files changed, 3 insertions, 0 deletions
diff --git a/CHANGES b/CHANGES
index 72e1d634b..322ea2443 100644
--- a/CHANGES
+++ b/CHANGES
@@ -2,6 +2,8 @@ CHANGES IN FLTK 1.1.7
- Documentation fixes (STR #648, STR #692, STR #730, STR
#744, STR #745)
+ - Fl_Browser_ didn't update the position properly when an
+ item was deleted (STR #839)
- fl_contrast() now compares the luminosity of each color
(STR #837)
- Fl_Input_ crashed on some platforms when wrapping
diff --git a/src/Fl_Browser_.cxx b/src/Fl_Browser_.cxx
index 869c862e4..9191a37cb 100644
--- a/src/Fl_Browser_.cxx
+++ b/src/Fl_Browser_.cxx
@@ -457,6 +457,7 @@ void Fl_Browser_::deleting(void* l) {
} else {
// we don't know where this item is, recalculate top...
real_position_ = 0;
+ offset_ = 0;
top_ = 0;
}
if (l == selection_) selection_ = 0;