Linux fixes for previous commit

This commit is contained in:
Matthias Melcher 2024-08-31 19:15:23 +02:00
parent c8b8eb4b84
commit e01c9ff6a0
1 changed files with 3 additions and 3 deletions

View File

@ -100,14 +100,14 @@ void group_cb(Fl_Widget *, void *) {
fl_message("Only widgets and menu items can be grouped."); fl_message("Only widgets and menu items can be grouped.");
return; return;
} }
if (Fl_Type::current->is_a(ID::ID_Menu_Item)) { if (Fl_Type::current->is_a(ID_Menu_Item)) {
group_selected_menuitems(); group_selected_menuitems();
return; return;
} }
// The group will be created in the parent group of the current widget // The group will be created in the parent group of the current widget
Fl_Type *qq = Fl_Type::current->parent; Fl_Type *qq = Fl_Type::current->parent;
Fl_Widget_Type *q = static_cast<Fl_Widget_Type*>(Fl_Type::current); Fl_Widget_Type *q = static_cast<Fl_Widget_Type*>(Fl_Type::current);
while (qq && !qq->is_a(ID::ID_Group)) { while (qq && !qq->is_a(ID_Group)) {
qq = qq->parent; qq = qq->parent;
} }
if (!qq) { if (!qq) {
@ -148,7 +148,7 @@ void ungroup_cb(Fl_Widget *, void *) {
fl_message("Only widgets and menu items can be ungrouped."); fl_message("Only widgets and menu items can be ungrouped.");
return; return;
} }
if (Fl_Type::current->is_a(ID::ID_Menu_Item)) { if (Fl_Type::current->is_a(ID_Menu_Item)) {
ungroup_selected_menuitems(); ungroup_selected_menuitems();
return; return;
} }