Fluid: Window was not updated when widget was deleted.

For parents with a box type based on FRAME.
This commit is contained in:
Matthias Melcher 2022-01-11 21:41:58 +01:00
parent d699b617ac
commit 59384b359c
1 changed files with 6 additions and 2 deletions

View File

@ -214,8 +214,12 @@ Fl_Widget_Type::Fl_Widget_Type() {
Fl_Widget_Type::~Fl_Widget_Type() {
if (o) {
o->hide();
if (o->parent()) ((Fl_Group*)o->parent())->remove(*o);
delete o;
Fl_Window *win = o->window();
if (win)
win->redraw();
if (o->parent())
((Fl_Group*)o->parent())->remove(*o);
Fl::delete_widget(o);
}
if (subclass_) free((void*)subclass_);
if (tooltip_) free((void*)tooltip_);