diff --git a/fluid/function_panel.fl b/fluid/function_panel.fl index 6e153ded3..faa465e8d 100644 --- a/fluid/function_panel.fl +++ b/fluid/function_panel.fl @@ -588,7 +588,7 @@ Function {make_comment_panel()} {open Function {type_make_cb(Fl_Widget*,void*d)} {open return_type void } { code {const char *type_name = (const char*)d; -if (Fl_Type::current && Fl_Type::current->is_parent()) +if (Fl_Type::current && Fl_Type::current->can_have_children()) add_new_widget_from_user(type_name, kAddAsLastChild); else add_new_widget_from_user(type_name, kAddAfterCurrent);} {}