From ea88888f768b1bbec2300eea93029bec67ad2f43 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Thu, 19 Oct 2023 23:54:31 +0200 Subject: FLUID typos, comments, superfluous code --- fluid/factory.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fluid/factory.cxx') diff --git a/fluid/factory.cxx b/fluid/factory.cxx index 8e6164aa1..d9c53465a 100644 --- a/fluid/factory.cxx +++ b/fluid/factory.cxx @@ -1272,7 +1272,7 @@ Fl_Type *add_new_widget_from_user(const char *inName, Strategy strategy) { */ static void cbf(Fl_Widget *, void *v) { Fl_Type *t = NULL; - if (Fl_Type::current && Fl_Type::current->is_group()) + if (Fl_Type::current && Fl_Type::current->is_a(Fl_Type::ID_Group)) t = ((Fl_Type*)v)->make(kAddAsLastChild); else t = ((Fl_Type*)v)->make(kAddAfterCurrent); @@ -1284,7 +1284,7 @@ static void cbf(Fl_Widget *, void *v) { */ static void cb(Fl_Widget *, void *v) { Fl_Type *t = NULL; - if (Fl_Type::current && Fl_Type::current->is_group()) + if (Fl_Type::current && Fl_Type::current->is_a(Fl_Type::ID_Group)) t = add_new_widget_from_user((Fl_Type*)v, kAddAsLastChild); else t = add_new_widget_from_user((Fl_Type*)v, kAddAfterCurrent); -- cgit v1.2.3