diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2009-04-13 21:12:52 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2009-04-13 21:12:52 (GMT) |
commit | 28d98c9e16e4438912e49cc0cb4370b3220a47fa (patch) | |
tree | 2952713dad7cc688c9bb2f4b731a69b4e4eed212 /library/xmfbox.tcl | |
parent | 87d9a5b6097c69d7287bbc765d140c3a3f081170 (diff) | |
download | tk-28d98c9e16e4438912e49cc0cb4370b3220a47fa.zip tk-28d98c9e16e4438912e49cc0cb4370b3220a47fa.tar.gz tk-28d98c9e16e4438912e49cc0cb4370b3220a47fa.tar.bz2 |
Fix [Bug 2759119] and apply [Patch 2739360] (partially).
Diffstat (limited to 'library/xmfbox.tcl')
-rw-r--r-- | library/xmfbox.tcl | 10 |
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] } |