From f94cadf456e676143bc06f8918d0f50f1b52ab17 Mon Sep 17 00:00:00 2001 From: Jack Jansen Date: Sat, 31 Aug 2002 01:20:53 +0000 Subject: [PATCH] MenuID's are signed. --- Mac/Tools/IDE/Wapplication.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Mac/Tools/IDE/Wapplication.py b/Mac/Tools/IDE/Wapplication.py index 27613f2cb42..f78ef5e0a6c 100644 --- a/Mac/Tools/IDE/Wapplication.py +++ b/Mac/Tools/IDE/Wapplication.py @@ -190,6 +190,8 @@ def do_inMenuBar(self, partcode, window, event): self.checkmenus(None) result = MenuToolbox.MenuSelect(where) id = (result>>16) & 0xffff # Hi word + if id >= 0x8000: + id = -0x10000 + id item = result & 0xffff # Lo word self.do_rawmenu(id, item, window, event)