mirror of
https://github.com/fltk/fltk.git
synced 2026-05-21 06:21:26 +08:00
Fluid: Window was not updated when widget was deleted.
For parents with a box type based on FRAME.
This commit is contained in:
@@ -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_);
|
||||
|
||||
Reference in New Issue
Block a user