mirror of https://github.com/fltk/fltk
Fluid: Window was not updated when widget was deleted.
For parents with a box type based on FRAME.
This commit is contained in:
parent
d699b617ac
commit
59384b359c
|
@ -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_);
|
||||
|
|
Loading…
Reference in New Issue