summaryrefslogtreecommitdiffstats
path: root/macosx
diff options
context:
space:
mode:
authorculler <culler>2019-01-27 17:15:08 (GMT)
committerculler <culler>2019-01-27 17:15:08 (GMT)
commit2127d0a3c7f96a8769f3eced53bf5cd1008b768b (patch)
tree643048341abb3cb1ff172d1d075413c20b5cf73a /macosx
parent0108f0519ddb45089bcd6e5e1e1b62112214df24 (diff)
downloadtk-2127d0a3c7f96a8769f3eced53bf5cd1008b768b.zip
tk-2127d0a3c7f96a8769f3eced53bf5cd1008b768b.tar.gz
tk-2127d0a3c7f96a8769f3eced53bf5cd1008b768b.tar.bz2
Fix over-correction in the last commit. We must allow item to be nil on macOS.
Diffstat (limited to 'macosx')
-rw-r--r--macosx/tkMacOSXMenu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/macosx/tkMacOSXMenu.c b/macosx/tkMacOSXMenu.c
index ed8d0c3..0b84891 100644
--- a/macosx/tkMacOSXMenu.c
+++ b/macosx/tkMacOSXMenu.c
@@ -807,7 +807,7 @@ TkpPostMenu(
if (itemIndex >= 0) {
item = [menu itemAtIndex:itemIndex];
}
- if (menu != nil && item != nil) {
+ if (menu != nil) {
oldMode = Tcl_SetServiceMode(TCL_SERVICE_NONE);
[menu popUpMenuPositioningItem:item
atLocation:[win tkConvertPointFromScreen:location]