diff options
author | chengyemao <chengyemao> | 2003-10-29 01:45:41 (GMT) |
---|---|---|
committer | chengyemao <chengyemao> | 2003-10-29 01:45:41 (GMT) |
commit | 6086b0d5fcc976716438d6dc76483f1ce707f3bf (patch) | |
tree | 64c7736b9cf31fc36306dfbe1ec7684996848d27 /library | |
parent | 61c07d71fe22bede0d58e715f6579d93c39f0a40 (diff) | |
download | tk-6086b0d5fcc976716438d6dc76483f1ce707f3bf.zip tk-6086b0d5fcc976716438d6dc76483f1ce707f3bf.tar.gz tk-6086b0d5fcc976716438d6dc76483f1ce707f3bf.tar.bz2 |
Fixed a typing error in ::tk::PlaceWindow. Please do a test before commiting a change.
Diffstat (limited to 'library')
-rw-r--r-- | library/tk.tcl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/tk.tcl b/library/tk.tcl index eed96b3..e6ef6f6 100644 --- a/library/tk.tcl +++ b/library/tk.tcl @@ -3,7 +3,7 @@ # Initialization script normally executed in the interpreter for each # Tk-based application. Arranges class bindings for widgets. # -# RCS: @(#) $Id: tk.tcl,v 1.51 2003/10/28 15:56:46 dkf Exp $ +# RCS: @(#) $Id: tk.tcl,v 1.52 2003/10/29 01:45:41 chengyemao Exp $ # # Copyright (c) 1992-1994 The Regents of the University of California. # Copyright (c) 1994-1996 Sun Microsystems, Inc. @@ -79,7 +79,7 @@ proc ::tk::PlaceWindow {w {place ""} {anchor ""}} { wm withdraw $w update idletasks set checkBounds 1 - if ($place eq ""} { + if {$place eq ""} { set x [expr {([winfo screenwidth $w]-[winfo reqwidth $w])/2}] set y [expr {([winfo screenheight $w]-[winfo reqheight $w])/2}] set checkBounds 0 |