pickconfig.tcl: no recursion in minimal_tree
avoid background error reports like:
"::tcl::Bgerror {too many nested evaluations (infinite loop?)}
{-code 1 -level 0 -errorstack {INNER {invokeStk1 treeclose
...
error in background error handler:
too many nested evaluations (infinite loop?)"
for trees with many nodes
Ref: https://forum.linuxcnc.org/49-basic-configuration/37241-tcl-errors-from-config-selector#143282
This commit is contained in:
parent
ae888f9c29
commit
06ac1139b7
1 changed files with 1 additions and 1 deletions
|
|
@ -557,7 +557,7 @@ proc minimal_tree {node} {
|
|||
set p [$::tree parent $node]
|
||||
foreach c [$::tree nodes $p] {
|
||||
if {"$c" == "$node"} continue
|
||||
$::tree closetree $c
|
||||
$::tree closetree $c 0 ;# 0 ==> no recurse
|
||||
}
|
||||
minimal_tree $p ;#recursion
|
||||
} ;# minimal_tree
|
||||
|
|
|
|||
Loading…
Reference in a new issue