Ignore:
Timestamp:
Feb 15, 2012, 2:53:26 PM (15 years ago)
Author:
Jorge Pérez <josp.jorge@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
0d88c15
Parents:
699b7d8
Message:

fixes #1433, cuando el conjunto es estructurado se incluye la definición de la estructura en el panel info

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

File:
1 edited

Legend:

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

    r699b7d8 ra566515  
    20122012  set addr [ ::tol::info address $objReference ]
    20132013  return [ Tol_ClassOf $addr ]
     2014}
     2015
     2016proc Tol_StructOf { obj_addr } {
     2017  set tolcode [ string map [ list %A $obj_addr ]  {
     2018    Text {
     2019      Anything obj = GetObjectFromAddress( "%A" );
     2020      // WriteLn( "Tol_StructOf " << Grammar( obj ) );
     2021      Text If( Grammar( obj ) == "Set", StructName( obj ), "" )
     2022    }
     2023  } ]
     2024  return [ lindex [ toltcl::eval $tolcode ] 0 ]
     2025}
     2026
     2027proc Tol_StructOfFromReference { objReference } {
     2028  set addr [ ::tol::info address $objReference ]
     2029  return [ Tol_StructOf $addr ]
    20142030}
    20152031
Note: See TracChangeset for help on using the changeset viewer.