Ignore:
Timestamp:
Jun 12, 2016 12:55:48 AM (8 years ago)
Author:
ldelgass
Message:

VTK (XML) files can have field names with spaces, so fix protocol to quote field
names.

File:
1 edited

Legend:

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

    r6361 r6377  
    13551355
    13561356            # Get the new limits because the field changed.
    1357             SendCmd "dataset scalar $_curFldName"
    1358             #SendCmd "image colormode scalar $_curFldName"
     1357            SendCmd [list dataset scalar $_curFldName]
     1358            #SendCmd [list image colormode scalar $_curFldName]
    13591359            SendCmd "camera reset"
    13601360            DrawLegend
     
    15111511            set _colormaps($cmap) 1
    15121512        }
    1513         #SendCmd "legend $cmap scalar $_curFldName {} $w $h 0"
     1513        #SendCmd [list legend $cmap scalar $_curFldName {} $w $h 0]
    15141514        SendCmd "legend2 $cmap $w $h"
    15151515    }
Note: See TracChangeset for help on using the changeset viewer.