summaryrefslogtreecommitdiffstats
path: root/library/bgerror.tcl
diff options
context:
space:
mode:
authorwelch <welch>1998-06-27 18:05:23 (GMT)
committerwelch <welch>1998-06-27 18:05:23 (GMT)
commitd010dca55fd7a02e3fe6e50910359d8d4915f003 (patch)
tree51976c1e3d6ee61236801eab64ad438ba5499943 /library/bgerror.tcl
parent16e849012c5065caad307d5733660750a6e35204 (diff)
downloadtk-d010dca55fd7a02e3fe6e50910359d8d4915f003.zip
tk-d010dca55fd7a02e3fe6e50910359d8d4915f003.tar.gz
tk-d010dca55fd7a02e3fe6e50910359d8d4915f003.tar.bz2
plugin update
Diffstat (limited to 'library/bgerror.tcl')
-rw-r--r--library/bgerror.tcl8
1 files changed, 4 insertions, 4 deletions
diff --git a/library/bgerror.tcl b/library/bgerror.tcl
index d2b1cdc..2c43305 100644
--- a/library/bgerror.tcl
+++ b/library/bgerror.tcl
@@ -82,10 +82,10 @@ proc bgerror err {
wm withdraw $w
update idletasks
- set x [expr [winfo screenwidth $w]/2 - [winfo reqwidth $w]/2 \
- - [winfo vrootx [winfo parent $w]]]
- set y [expr [winfo screenheight $w]/2 - [winfo reqheight $w]/2 \
- - [winfo vrooty [winfo parent $w]]]
+ set x [expr {[winfo screenwidth $w]/2 - [winfo reqwidth $w]/2 \
+ - [winfo vrootx [winfo parent $w]]}]
+ set y [expr {[winfo screenheight $w]/2 - [winfo reqheight $w]/2 \
+ - [winfo vrooty [winfo parent $w]]}]
wm geom $w +$x+$y
wm deiconify $w