Changeset 4758 for trunk


Ignore:
Timestamp:
Nov 21, 2014, 2:31:42 PM (10 years ago)
Author:
ldelgass
Message:

apply fix from r4756 to image viewer

File:
1 edited

Legend:

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

    r4749 r4758  
    10301030
    10311031            if {$axis == "z" && [$_first hints ${axis}units] == ""} {
    1032                 set units [lindex $_fields($_curFldName) 1]
     1032                if {$_curFldName != ""} {
     1033                    set units [lindex $_fields($_curFldName) 1]
     1034                }
    10331035            } else {
    10341036                set units [$_first hints ${axis}units]
     
    15521554    # Set the legend on the first image dataset.
    15531555    if { $_currentColormap != "" && $_currentColormap != "none" } {
    1554         SendCmd "legend $_currentColormap scalar $_curFldName {} $w $h 0"
     1556        #SendCmd "legend $_currentColormap scalar $_curFldName {} $w $h 0"
     1557        SendCmd "legend2 $_currentColormap $w $h"
    15551558    }
    15561559}
Note: See TracChangeset for help on using the changeset viewer.