summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorhobbs <hobbs@noemail.net>2007-02-19 23:52:19 (GMT)
committerhobbs <hobbs@noemail.net>2007-02-19 23:52:19 (GMT)
commit3322f76fb57ef8c27cc5c44cc858f2bcfff21492 (patch)
tree1218ec3c834cb7d50a7f12345a47ff9ed5fa0ce8 /library
parentf222cdf426508f542646d2dffc618d66b4660a07 (diff)
downloadtk-3322f76fb57ef8c27cc5c44cc858f2bcfff21492.zip
tk-3322f76fb57ef8c27cc5c44cc858f2bcfff21492.tar.gz
tk-3322f76fb57ef8c27cc5c44cc858f2bcfff21492.tar.bz2
* library/tkfbox.tcl (::tk::IconList_Goto): avoid goto issues in
empty dirs. [Bug 1662959] FossilOrigin-Name: cf67aa1726d2cbf712dde7c14bdc9201ac2820d4
Diffstat (limited to 'library')
-rw-r--r--library/tkfbox.tcl4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/tkfbox.tcl b/library/tkfbox.tcl
index 60c8ab2..a9228e1 100644
--- a/library/tkfbox.tcl
+++ b/library/tkfbox.tcl
@@ -11,7 +11,7 @@
# files by clicking on the file icons or by entering a filename
# in the "Filename:" entry.
#
-# RCS: @(#) $Id: tkfbox.tcl,v 1.58 2006/07/07 00:39:42 hobbs Exp $
+# RCS: @(#) $Id: tkfbox.tcl,v 1.59 2007/02/19 23:52:19 hobbs Exp $
#
# Copyright (c) 1994-1998 Sun Microsystems, Inc.
#
@@ -733,7 +733,7 @@ proc ::tk::IconList_Goto {w text} {
return
}
- if {$text eq ""} {
+ if {$text eq "" || $data(numItems) == 0} {
return
}