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
This commit is contained in:
Michael R Sweet
2005-05-12 17:10:58 +00:00
parent f88e7b23af
commit fdf8cbad74
2 changed files with 3 additions and 0 deletions
+2
View File
@@ -2,6 +2,8 @@ CHANGES IN FLTK 1.1.7
- Documentation fixes (STR #648, STR #692, STR #730, STR - Documentation fixes (STR #648, STR #692, STR #730, STR
#744, STR #745) #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 - fl_contrast() now compares the luminosity of each color
(STR #837) (STR #837)
- Fl_Input_ crashed on some platforms when wrapping - Fl_Input_ crashed on some platforms when wrapping
+1
View File
@@ -457,6 +457,7 @@ void Fl_Browser_::deleting(void* l) {
} else { } else {
// we don't know where this item is, recalculate top... // we don't know where this item is, recalculate top...
real_position_ = 0; real_position_ = 0;
offset_ = 0;
top_ = 0; top_ = 0;
} }
if (l == selection_) selection_ = 0; if (l == selection_) selection_ = 0;