Ignore:
Timestamp:
Apr 14, 2015 2:28:08 PM (9 years ago)
Author:
ldelgass
Message:

merge r5156 from trunk

Location:
branches/1.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/1.3

    • Property svn:mergeinfo changed
      /trunkmerged: 5156
  • branches/1.3/gui/scripts/vtksurfaceviewer.tcl

    r5217 r5219  
    132132    private variable _changed
    133133    private variable _initialStyle;     # Array of initial component styles.
    134     private variable _reset 1;          # indicates if camera needs to be reset
    135                                         # to starting position.
     134    private variable _reset 1;          # Connection to server has been reset.
    136135
    137136    private variable _first ""     ;    # This is the topmost dataset.
     
    727726        return 0
    728727    }
     728    set _reset 1
    729729    set result [VisViewer::Connect $_hosts]
    730730    if { $result } {
     
    979979        Zoom reset
    980980        foreach axis { x y z } {
    981             # Another problem fixed by a <view>. We looking into a data
    982             # object for the name of the axes. This should be global to
    983             # the viewer itself.
    984             set label [$_first hints ${axis}label]
     981            set label ""
     982            if { $_first != "" } {
     983                set label [$_first hints ${axis}label]
     984            }
    985985            if { $label == "" } {
    986986                set label [string toupper $axis]
Note: See TracChangeset for help on using the changeset viewer.