Changeset ceaefa5 in tol for tolbase/lib/byswidget/bsersel


Ignore:
Timestamp:
Jun 26, 2009, 6:21:32 PM (17 years ago)
Author:
Javier Portugal <javipor@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
307a230
Parents:
f8287df
Message:

Fixed bug when selecting default value for "Uni.Ind" subdimensions

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

File:
1 edited

Legend:

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

    rf8287df rceaefa5  
    220220      incr idxMag
    221221    }
    222     parray alg   
     222    #parray alg   
    223223  }
    224224
    … …  
    545545  #   sDi -> subdimension identifier
    546546  #/////////////////////////////////////////////////////////////////////////////
    547   #Tolcon_Trace "_fillSubDim mag=$mag, dim=$dim, sDi=$sDi"
     547    #Tolcon_Trace "_fillSubDim mag=$mag, dim=$dim, sDi=$sDi"
    548548    set type [$self _getSubDimType $mag $dim $sDi]
    549549    switch -- $type {
    … …  
    577577  return -1
    578578}
     579
    579580#/////////////////////////////////////////////////////////////////////////////
    580581method _fillSubDimHie {mag dim sDi trigger} {
    … …  
    693694#   sDi -> subdimension identifier
    694695#/////////////////////////////////////////////////////////////////////////////
    695 #Tolcon_Trace "_fillSubDimUniInd mag=$mag dim=$dim, sDi=$sDi"
     696#Tolcon_Trace "_fillSubDimDat mag=$mag dim=$dim, sDi=$sDi"
    696697  set w $algwid($mag,$dim,$sDi)
    697698  set lstReg [$self _getSubDimValues $mag $dim $sDi]
    … …  
    818819        set valCont [expr $valCont+1]
    819820        if {$defval eq [lindex $reg 1]} {
    820              set defFound $valCont
     821          set defFound $valCont
    821822        }
    822823      }
    … …  
    848849
    849850    if {$defval ne ""} {
    850        if {$defFound eq 1} {
     851       if {$defFound ne 0} {
    851852          $tmp($mag,$dim,$sDi) selectIndex $defFound
    852853       }
Note: See TracChangeset for help on using the changeset viewer.