From 119f78bee091847254ee3572129b329db8558fb2 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Mon, 28 Mar 2005 13:38:23 +0000 Subject: Handle window class methods. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4199 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- fluid/Fl_Window_Type.cxx | 1 + 1 file changed, 1 insertion(+) 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); -- cgit v1.2.3