summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorhobbs <hobbs>2007-02-19 23:52:19 (GMT)
committerhobbs <hobbs>2007-02-19 23:52:19 (GMT)
commitde9611c48d37dc29f0c06e2f04705c60d0c2b85f (patch)
tree1218ec3c834cb7d50a7f12345a47ff9ed5fa0ce8 /library
parent70d72ae261aa0e388cabeeaf1c8f38027f17874a (diff)
downloadtk-de9611c48d37dc29f0c06e2f04705c60d0c2b85f.zip
tk-de9611c48d37dc29f0c06e2f04705c60d0c2b85f.tar.gz
tk-de9611c48d37dc29f0c06e2f04705c60d0c2b85f.tar.bz2
* library/tkfbox.tcl (::tk::IconList_Goto): avoid goto issues in
empty dirs. [Bug 1662959]
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
}