mirror of
https://github.com/fltk/fltk.git
synced 2026-05-29 04:26:27 +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() {
|
Fl_Widget_Type::~Fl_Widget_Type() {
|
||||||
if (o) {
|
if (o) {
|
||||||
o->hide();
|
o->hide();
|
||||||
if (o->parent()) ((Fl_Group*)o->parent())->remove(*o);
|
Fl_Window *win = o->window();
|
||||||
delete o;
|
if (win)
|
||||||
|
win->redraw();
|
||||||
|
if (o->parent())
|
||||||
|
((Fl_Group*)o->parent())->remove(*o);
|
||||||
|
Fl::delete_widget(o);
|
||||||
}
|
}
|
||||||
if (subclass_) free((void*)subclass_);
|
if (subclass_) free((void*)subclass_);
|
||||||
if (tooltip_) free((void*)tooltip_);
|
if (tooltip_) free((void*)tooltip_);
|
||||||
|
|||||||
Reference in New Issue
Block a user