summaryrefslogtreecommitdiff
path: root/fluid
diff options
context:
space:
mode:
authorBill Spitzak <spitzak@gmail.com>1999-03-13 20:07:21 +0000
committerBill Spitzak <spitzak@gmail.com>1999-03-13 20:07:21 +0000
commit2316172e5f79f129b7f5369b8c99f03e101aa7f9 (patch)
tree28cf29cb979565796255a9a29dd429b9dfc2d3bf /fluid
parentfcaa42485f4ffaebc1b881934b2407e1c1115955 (diff)
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
Diffstat (limited to 'fluid')
-rw-r--r--fluid/Fl_Type.cxx6
1 files changed, 3 insertions, 3 deletions
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 $".
//