diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2021-05-20 11:41:35 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2021-05-20 11:41:35 (GMT) |
commit | f91ecf605f294c395987bf0492ca37a79b6a6724 (patch) | |
tree | 9800df25cf30663897ae3c82f9cc5df763a1d077 /library/tearoff.tcl | |
parent | 4c539e417a6a1879608215483d22d01a11a6a422 (diff) | |
download | tk-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.tcl | 2 |
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} { |