diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2002-08-31 01:20:53 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2002-08-31 01:20:53 (GMT) |
commit | f94cadf456e676143bc06f8918d0f50f1b52ab17 (patch) | |
tree | 902bb13817723b2bed4981654d07a45f6afd0943 | |
parent | fe9acdea8af57a7810b02c667269b27c3d5e4348 (diff) | |
download | cpython-f94cadf456e676143bc06f8918d0f50f1b52ab17.zip cpython-f94cadf456e676143bc06f8918d0f50f1b52ab17.tar.gz cpython-f94cadf456e676143bc06f8918d0f50f1b52ab17.tar.bz2 |
MenuID's are signed.
-rw-r--r-- | Mac/Tools/IDE/Wapplication.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Mac/Tools/IDE/Wapplication.py b/Mac/Tools/IDE/Wapplication.py index 27613f2..f78ef5e 100644 --- a/Mac/Tools/IDE/Wapplication.py +++ b/Mac/Tools/IDE/Wapplication.py @@ -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) |