Bugfix: correctly implement removeCanvas procedure.
Bug found by:
Submitted by:
Requested by:
Reviewed by:
Approved by:
Obtained from:
proc removeCanvas { canvas } {
- #puts "removeCanvas $canvas"
+ global canvass $canvas
+
+ set i [lsearch $canvass $canvas]
+ set canvass [lreplace $canvass $i $i]
+ set $canvas {}
return
}
set canvas c0
global $canvas
lappend canvass $canvas
- set $canvas {{name default}}
+ set $canvas {name default}
+ return
}
set newcmd [$w.ftop.cmd get]
set newconf [split [$w.text get 0.0 end] {\r}]
- while { [lindex $newconf end] == {} } {
+ while { [lindex $newconf end] == {} && $newconf != {} } {
set newconf [lreplace $newconf end end]
}
if { [getCustomCmd $node] != $newcmd || \