summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
Diffstat (limited to 'generic')
-rw-r--r--generic/tkMenu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tkMenu.c b/generic/tkMenu.c
index 3240ff5..d51febb 100644
--- a/generic/tkMenu.c
+++ b/generic/tkMenu.c
@@ -754,7 +754,7 @@ MenuWidgetObjCmd(
first = 1;
}
- if ((first == TCL_INDEX_NONE) || (last < first)) {
+ if ((first == -1) || (last < first)) {
goto done;
}
DeleteMenuCloneEntries(menuPtr, first, last);