summaryrefslogtreecommitdiffstats
path: root/library/tk.tcl
diff options
context:
space:
mode:
authorchengyemao <chengyemao@noemail.net>2003-10-29 01:45:41 (GMT)
committerchengyemao <chengyemao@noemail.net>2003-10-29 01:45:41 (GMT)
commit02956bf59ec9e9d02e599f84893e5998f59c5314 (patch)
tree64c7736b9cf31fc36306dfbe1ec7684996848d27 /library/tk.tcl
parent4cd43c08557f02df2ce6c405305809e5c87eb505 (diff)
downloadtk-02956bf59ec9e9d02e599f84893e5998f59c5314.zip
tk-02956bf59ec9e9d02e599f84893e5998f59c5314.tar.gz
tk-02956bf59ec9e9d02e599f84893e5998f59c5314.tar.bz2
Fixed a typing error in ::tk::PlaceWindow. Please do a test before commiting a change.
FossilOrigin-Name: 4bc9abe63c4ea1177f6d157de37490c3abab9846
Diffstat (limited to 'library/tk.tcl')
-rw-r--r--library/tk.tcl4
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