summaryrefslogtreecommitdiffstats
path: root/library/tk.tcl
diff options
context:
space:
mode:
authorchengyemao <chengyemao>2003-10-29 01:45:41 (GMT)
committerchengyemao <chengyemao>2003-10-29 01:45:41 (GMT)
commit5bbe7b1ec36aa1a2f46eca373202737f96ad313e (patch)
tree64c7736b9cf31fc36306dfbe1ec7684996848d27 /library/tk.tcl
parent88ad694199d876152a33db001d2f2d48850ef1e8 (diff)
downloadtk-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.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