From 2316172e5f79f129b7f5369b8c99f03e101aa7f9 Mon Sep 17 00:00:00 2001 From: Bill Spitzak Date: Sat, 13 Mar 1999 20:07:21 +0000 Subject: Fixed fluid bug that caused styles patch to crash when you delete menu item. Changed a comment in Fl.cxx Changed valuators demo to remove code to set value() on some widgets and put the value into the gui box instead. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@421 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- fluid/Fl_Type.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'fluid') diff --git a/fluid/Fl_Type.cxx b/fluid/Fl_Type.cxx index 49b814bf5..be5d5dad0 100644 --- a/fluid/Fl_Type.cxx +++ b/fluid/Fl_Type.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_Type.cxx,v 1.6 1999/02/17 16:31:47 mike Exp $" +// "$Id: Fl_Type.cxx,v 1.6.2.1 1999/03/13 20:07:19 bill Exp $" // // Widget type code for the Fast Light Tool Kit (FLTK). // @@ -465,13 +465,13 @@ void Fl_Type::open() { void Fl_Type::setlabel(const char *) {} Fl_Type::~Fl_Type() { - if (parent) parent->remove_child(this); // warning: destructor only works for widgets that have been add()ed. if (widget_browser) widget_browser->deleting(this); if (prev) prev->next = next; else first = next; if (next) next->prev = prev; else last = prev; if (current == this) current = 0; modflag = 1; + if (parent) parent->remove_child(this); } int Fl_Type::is_parent() const {return 0;} @@ -648,5 +648,5 @@ void Fl_Type::read_property(const char *c) { int Fl_Type::read_fdesign(const char*, const char*) {return 0;} // -// End of "$Id: Fl_Type.cxx,v 1.6 1999/02/17 16:31:47 mike Exp $". +// End of "$Id: Fl_Type.cxx,v 1.6.2.1 1999/03/13 20:07:19 bill Exp $". // -- cgit v1.2.3