Changeset 3594 for trunk/gui/scripts


Ignore:
Timestamp:
Mar 27, 2013 3:10:45 PM (11 years ago)
Author:
gah
Message:

fix: _dim must be set for all fields, even 1D fields

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/scripts/field.tcl

    r3585 r3594  
    8383    private variable _isValid 0;        # Indicates if the field contains
    8484                                        # valid data.
    85     private variable _isValidComponent
     85    private variable _isValidComponent; #  Array of valid components found
    8686    constructor {xmlobj path} {
    8787        # defined below
     
    124124        return $_viewer
    125125    }
    126 
    127126    protected method Build {}
    128127    protected method _getValue {expr}
     
    788787            set xv ""
    789788            set yv ""
    790 
     789            set _dim 1
    791790            set val [$_field get $cname.constant]
    792791            if {$val != ""} {
     
    825824                # sort x-coords in increasing order
    826825                $xv sort $yv
     826                set _dim 1
    827827                set _comp2dims($cname) "1D"
    828828                set _comp2xy($cname) [list $xv $yv]
Note: See TracChangeset for help on using the changeset viewer.