summaryrefslogtreecommitdiffstats
path: root/library/xmfbox.tcl
diff options
context:
space:
mode:
Diffstat (limited to 'library/xmfbox.tcl')
-rw-r--r--library/xmfbox.tcl10
1 files changed, 5 insertions, 5 deletions
diff --git a/library/xmfbox.tcl b/library/xmfbox.tcl
index d79627a..53bfd17 100644
--- a/library/xmfbox.tcl
+++ b/library/xmfbox.tcl
@@ -4,7 +4,7 @@
# Unix platform. This implementation is used only if the
# "::tk_strictMotif" flag is set.
#
-# RCS: @(#) $Id: xmfbox.tcl,v 1.31 2007/12/13 15:26:28 dgp Exp $
+# RCS: @(#) $Id: xmfbox.tcl,v 1.32 2009/04/13 21:12:52 dkf Exp $
#
# Copyright (c) 1996 Sun Microsystems, Inc.
# Copyright (c) 1998-2000 Scriptics Corporation
@@ -160,8 +160,8 @@ proc ::tk::MotifFDialog_FileTypes {w} {
# Default type to first entry
set initialTypeName [lindex $data(-filetypes) 0 0]
if {($data(-typevariable) ne "")
- && [uplevel 4 [list info exists $data(-typevariable)]]} {
- set initialTypeName [uplevel 4 [list set $data(-typevariable)]]
+ && [uplevel 3 [list info exists $data(-typevariable)]]} {
+ set initialTypeName [uplevel 3 [list set $data(-typevariable)]]
}
set ix 0
set data(fileType) 0
@@ -863,8 +863,8 @@ proc ::tk::MotifFDialog_ActivateSEnt {w} {
# Return selected filter
if {[info exists data(-typevariable)] && $data(-typevariable) ne ""
- && [info exists data(-filetypes)] && $data(-filetypes) ne ""} {
- upvar 2 $data(-typevariable) initialTypeName
+ && [info exists data(-filetypes)] && $data(-filetypes) ne ""} {
+ upvar 1 $data(-typevariable) initialTypeName
set initialTypeName [lindex $data(-filetypes) $data(fileType) 0]
}