Ignore:
Timestamp:
Feb 24, 2012, 8:43:47 AM (15 years ago)
Author:
Jorge Pérez <josp.jorge@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
6eef720
Parents:
9750667
Message:

refs #1438, se corrije un error con las referencias a archivos incluidos

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tolbase/lib/toltk/tolinspe.tcl

    r9750667 r025a6ef  
    703703    NameBlock -
    704704    Set {
    705       #puts "HTItem, ref = '$ref' '$args'"
     705      puts "HTItem, ref = '$ref' '$args'"
    706706      # args[5] is the index of the set object
    707707      # args[6] is the flag file
    … …  
    808808      set data [lreplace $data 9 9 $objRef] 
    809809      #(pgea) se utiliza la informacon de instancia
     810      puts "Tol_ClassOfFromReference $objRef"
    810811      set classOf [Tol_ClassOfFromReference $objRef]
     812      puts "Tol_InstanceContentFromReference $objRef"
    811813      set insCont [Tol_InstanceContentFromReference $objRef]
    812814      if {$insCont ne ""} {
    … …  
    13781380  variable node_prefix ""
    13791381  variable data
     1382  variable knownReference ""
    13801383
    13811384  set index [$ht_tree index anchor]
    … …  
    14881491  variable item_id 1
    14891492  variable w_tabset
    1490    
     1493  variable knownReference ""
     1494
    14911495  ClearHiertables
    14921496  $w_tabset tab configure Variables -text [mc Files]
    … …  
    14941498  $w_tabset select 0
    14951499  foreach f [lreverse [::tol::info included]] {
    1496     set fi [::tol::info included $f]
     1500    # this catch is needed because info include could return files not
     1501    # realy included.
     1502    if { [ catch { ::tol::info included $f } fi ] } continue
    14971503    # tener en cuenta el subtype cuando lo retorne
     1504    set knownReference [ list "File" $f ]
    14981505    InsertChild Set $f \
    1499         [lindex $fi 0] [lindex $fi 1] [list [lindex $fi 2]] $item_id 1 [lindex $fi 3] [lindex $fi 4]
     1506        [lindex $fi 0] [lindex $fi 1] [list [lindex $fi 2]] $item_id 1 [lindex $fi 3] [lindex $fi 4] 
    15001507  }
    15011508}
    … …  
    20292036
    20302037proc Tol_StructOfFromReference { objReference } {
     2038  if { [ llength $objReference ] == 2 &&
     2039       [ lindex $objReference 0 ] eq "File" } {
     2040    return ""
     2041  }
    20312042  set addr [ ::tol::info address $objReference ]
    20322043  return [ Tol_StructOf $addr ]
Note: See TracChangeset for help on using the changeset viewer.