summaryrefslogtreecommitdiff
path: root/fluid/function_panel.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'fluid/function_panel.cxx')
-rw-r--r--fluid/function_panel.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/fluid/function_panel.cxx b/fluid/function_panel.cxx
index 2c5919a99..04c1a4785 100644
--- a/fluid/function_panel.cxx
+++ b/fluid/function_panel.cxx
@@ -702,7 +702,7 @@ Fl_Double_Window* make_comment_panel() {
void type_make_cb(Fl_Widget*,void*d) {
const char *type_name = (const char*)d;
- if (Fl_Type::current && Fl_Type::current->is_group())
+ if (Fl_Type::current && Fl_Type::current->is_parent())
add_new_widget_from_user(type_name, kAddAsLastChild);
else
add_new_widget_from_user(type_name, kAddAfterCurrent);