summaryrefslogtreecommitdiffstats
path: root/library/tearoff.tcl
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2021-05-20 11:41:35 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2021-05-20 11:41:35 (GMT)
commitf91ecf605f294c395987bf0492ca37a79b6a6724 (patch)
tree9800df25cf30663897ae3c82f9cc5df763a1d077 /library/tearoff.tcl
parent4c539e417a6a1879608215483d22d01a11a6a422 (diff)
downloadtk-f91ecf605f294c395987bf0492ca37a79b6a6724.zip
tk-f91ecf605f294c395987bf0492ca37a79b6a6724.tar.gz
tk-f91ecf605f294c395987bf0492ca37a79b6a6724.tar.bz2
Fix [e3ad5e0fca]: macOS XQuartz : issue with menu
Diffstat (limited to 'library/tearoff.tcl')
-rw-r--r--library/tearoff.tcl2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/tearoff.tcl b/library/tearoff.tcl
index dece4df..efc5940 100644
--- a/library/tearoff.tcl
+++ b/library/tearoff.tcl
@@ -135,7 +135,7 @@ proc ::tk::MenuDup {src dst type} {
}
eval $cmd
set last [$src index last]
- if {$last eq "none"} {
+ if {$last eq "none" || $last < 0} {
return
}
for {set i [$src cget -tearoff]} {$i <= $last} {incr i} {