diff options
author | chengyemao <chengyemao> | 2003-10-29 01:45:41 (GMT) |
---|---|---|
committer | chengyemao <chengyemao> | 2003-10-29 01:45:41 (GMT) |
commit | 5bbe7b1ec36aa1a2f46eca373202737f96ad313e (patch) | |
tree | 64c7736b9cf31fc36306dfbe1ec7684996848d27 /library/tk.tcl | |
parent | 88ad694199d876152a33db001d2f2d48850ef1e8 (diff) | |
download | tk-5bbe7b1ec36aa1a2f46eca373202737f96ad313e.zip tk-5bbe7b1ec36aa1a2f46eca373202737f96ad313e.tar.gz tk-5bbe7b1ec36aa1a2f46eca373202737f96ad313e.tar.bz2 |
Fixed a typing error in ::tk::PlaceWindow. Please do a test before commiting a change.
Diffstat (limited to 'library/tk.tcl')
-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 |