diff ios/dw.m @ 2577:6fdab466d7a2

Android: Fix notebook page change event page always being 0. iOS: Commit a lingering DWMenu fix, menubar might not initialize array.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Sat, 22 May 2021 10:00:31 +0000
parents 2c2941e01b67
children 1d2f5c4eccc5
line wrap: on
line diff
--- a/ios/dw.m	Sat May 22 00:19:46 2021 +0000
+++ b/ios/dw.m	Sat May 22 10:00:31 2021 +0000
@@ -7581,7 +7581,7 @@
 HMENUI API dw_menubar_new(HWND location)
 {
     DWWindow *window = location;
-    DWMenu *menu = [[[DWMenu alloc] init] retain];
+    DWMenu *menu = [[[DWMenu alloc] initWithTag:0] retain];
 
     [window setMenu:menu];
     return menu;