Changeset 30a2cda in tol for tolbase/lib/byswidget/bsersel


Ignore:
Timestamp:
Nov 25, 2008, 5:44:56 PM (18 years ago)
Author:
Christian Paz <cpaz@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
01994af
Parents:
3ad2aa3
Message:

Corrected problem with hierarchical tree selector

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@230 be4846ae-f051-483a-831f-b64e7d08527f

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tolbase/lib/byswidget/bsersel/bsersel.tcl

    r3ad2aa3 r30a2cda  
    658658              if {$par ne ""} {
    659659                 set paridx [$self _findcode $alg(sDi,$mag,$dim,-hie,$sDi) $par]
     660#                                set cmd "Text WriteLn(\"already inserted pairs $mag $dim $sDi : $alg(sDi,$mag,$dim,-hie,$sDi) \");"
     661#                 ::tol::console eval $cmd
    660662                 if { $paridx >= 0 } {
    661663                   set plottedreg [ lreplace $plottedreg $regidx $regidx 1 ]
    662664                   set plotted [expr $plotted+1]
    663665                   set idx [ $tmp($mag,$dim,$sDi) insertNode $paridx 0 $mark $abr $nom $infCols ]
     666                                   lappend alg(sDi,$mag,$dim,-hie,$sDi) [list $idx $abr]
     667#                                  set cmd "Text WriteLn(\"Inserting it $iteration $abr $nom ($idx) parent $par ($paridx) \");"
     668#                   ::tol::console eval $cmd
    664669                 }
    665670              } else {
    … …  
    667672                 set plotted [expr $plotted+1]
    668673                 set idx [ $tmp($mag,$dim,$sDi) insertNode root 0 $mark $abr $nom $infCols ]
     674                                 lappend alg(sDi,$mag,$dim,-hie,$sDi) [list $idx $abr]
     675#                                  set cmd "Text WriteLn(\"Inserting it $iteration $abr $nom ($idx) \");"
     676#                   ::tol::console eval $cmd
    669677              }
    670               lappend alg(sDi,$mag,$dim,-hie,$sDi) [list $idx $abr]
    671678          }
    672679          set regidx [expr $regidx+1]
Note: See TracChangeset for help on using the changeset viewer.