MenuID's are signed.

This commit is contained in:
Jack Jansen 2002-08-31 01:20:53 +00:00
parent fe9acdea8a
commit f94cadf456

View File

@ -190,6 +190,8 @@ class Application(FrameWork.Application):
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)