summaryrefslogtreecommitdiffstats
path: root/library/demos/floor.tcl
diff options
context:
space:
mode:
authordkf <dkf@noemail.net>2001-06-14 10:56:57 (GMT)
committerdkf <dkf@noemail.net>2001-06-14 10:56:57 (GMT)
commitb31d745dcd575be4844f935c9530350a504f9fb3 (patch)
treeab207a698a3ec34347d9ed68baa80cb2825a3bd1 /library/demos/floor.tcl
parent595ebf15f09581a940a06665a5d1916ed508dac5 (diff)
downloadtk-b31d745dcd575be4844f935c9530350a504f9fb3.zip
tk-b31d745dcd575be4844f935c9530350a504f9fb3.tar.gz
tk-b31d745dcd575be4844f935c9530350a504f9fb3.tar.bz2
Added braces to expressions.
FossilOrigin-Name: 486fbd3c546a027744d7834fc68070af4f182d25
Diffstat (limited to 'library/demos/floor.tcl')
-rw-r--r--library/demos/floor.tcl4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/demos/floor.tcl b/library/demos/floor.tcl
index 0afb625..2435544 100644
--- a/library/demos/floor.tcl
+++ b/library/demos/floor.tcl
@@ -3,7 +3,7 @@
# This demonstration script creates a canvas widet that displays the
# floorplan for DEC's Western Research Laboratory.
#
-# RCS: @(#) $Id: floor.tcl,v 1.2 1998/09/14 18:23:28 stanton Exp $
+# RCS: @(#) $Id: floor.tcl,v 1.3 2001/06/14 10:56:58 dkf Exp $
if {![info exists widgetDemo]} {
error "This script should be run from the \"widget\" demo."
@@ -94,7 +94,7 @@ proc newRoom w {
proc roomChanged {w args} {
global currentRoom floorItems colors
$w delete highlight
- if [catch {set item $floorItems($currentRoom)}] {
+ if {[catch {set item $floorItems($currentRoom)}]} {
return
}
set new [eval \