diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2005-05-12 17:10:58 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2005-05-12 17:10:58 +0000 |
| commit | fdf8cbad747226edb4a4568aa29b115cab43a40a (patch) | |
| tree | 4396a2dca90750be7122910195f174a6f4737f45 | |
| parent | f88e7b23afb128d10be838d275e4f61ba6836112 (diff) | |
Fl_Browser_ didn't update the position properly when an item was
deleted (STR #839)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4340 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
| -rw-r--r-- | CHANGES | 2 | ||||
| -rw-r--r-- | src/Fl_Browser_.cxx | 1 |
2 files changed, 3 insertions, 0 deletions
@@ -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; |
