summaryrefslogtreecommitdiff
path: root/fluid
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2005-03-28 13:38:23 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2005-03-28 13:38:23 +0000
commit119f78bee091847254ee3572129b329db8558fb2 (patch)
tree689d1afd36c400cecd74d2950ef05f4b2615de0b /fluid
parentbae6f62ea8eb16d9a826ca7dbf5b466cb460d51c (diff)
Handle window class methods.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4199 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'fluid')
-rw-r--r--fluid/Fl_Window_Type.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/fluid/Fl_Window_Type.cxx b/fluid/Fl_Window_Type.cxx
index 18d37d283..ba1541bd3 100644
--- a/fluid/Fl_Window_Type.cxx
+++ b/fluid/Fl_Window_Type.cxx
@@ -335,6 +335,7 @@ Fl_Type *Fl_Window_Type::make() {
}
void Fl_Window_Type::add_child(Fl_Type* cc, Fl_Type* before) {
+ if (!cc->is_widget()) return;
Fl_Widget_Type* c = (Fl_Widget_Type*)cc;
Fl_Widget* b = before ? ((Fl_Widget_Type*)before)->o : 0;
((Fl_Window*)o)->insert(*(c->o), b);