FLTK logo

[master] 42f4eba - Renewing old code, as suggested by Albrecht.

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.commit  ]
 
Previous Message ]Next Message ]

[master] 42f4eba - Renewing old code, as suggested by Albrecht. "Matthias Melcher" Jan 12, 2022  
 
commit 42f4ebab2f8d182d979317fb9001044b23ad218a
Author:     Matthias Melcher <github@matthiasm.com>
AuthorDate: Wed Jan 12 11:37:32 2022 +0100
Commit:     Matthias Melcher <github@matthiasm.com>
CommitDate: Wed Jan 12 11:38:14 2022 +0100

    Renewing old code, as suggested by Albrecht.

 fluid/Fl_Widget_Type.cxx | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git fluid/Fl_Widget_Type.cxx fluid/Fl_Widget_Type.cxx
index b35355f..918ca70 100644
--- fluid/Fl_Widget_Type.cxx
+++ fluid/Fl_Widget_Type.cxx
@@ -213,13 +213,10 @@ Fl_Widget_Type::Fl_Widget_Type() {
 
 Fl_Widget_Type::~Fl_Widget_Type() {
   if (o) {
-    o->hide();
     Fl_Window *win = o->window();
+    delete o;
     if (win)
       win->redraw();
-    if (o->parent())
-      ((Fl_Group*)o->parent())->remove(*o);
-    delete o;
   }
   if (subclass_) free((void*)subclass_);
   if (tooltip_) free((void*)tooltip_);
Direct Link to Message ]
 
     
Previous Message ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.