From 2ef4a81d183ccc43fb4183c39470a97bda4c75f8 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Sat, 5 Feb 2022 09:01:51 +0100 Subject: Minor improvement in Fl_Mac_App_Menu::custom_application_menu_items(). --- src/Fl_MacOS_Sys_Menu_Bar.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Fl_MacOS_Sys_Menu_Bar.mm') diff --git a/src/Fl_MacOS_Sys_Menu_Bar.mm b/src/Fl_MacOS_Sys_Menu_Bar.mm index 88200ead6..57833511e 100644 --- a/src/Fl_MacOS_Sys_Menu_Bar.mm +++ b/src/Fl_MacOS_Sys_Menu_Bar.mm @@ -507,7 +507,7 @@ void Fl_Mac_App_Menu::custom_application_menu_items(const Fl_Menu_Item *m) if ([[menu itemAtIndex:2] action] != @selector(printPanel)) { // the 'Print' item was removed [menu insertItem:[NSMenuItem separatorItem] atIndex:1]; to_index = 2; - } else to_index = 4; // after the "Print Front Window/Toggle" items + } else to_index = 5; // after the "Print Front Window/Toggle" items and the separator NSInteger count = [menu numberOfItems]; createSubMenu(menu, m, NULL, @selector(customCallback)); // add new items at end of application menu NSInteger count2 = [menu numberOfItems]; -- cgit v1.2.3