Ignore:
Timestamp:
Jun 8, 2006 6:58:38 PM (18 years ago)
Author:
mmc
Message:

Fixed bugs that showed up in the nanovis viewer when you switch between
two different fields or clear the existing result viewer.

Fixed the download option for 3D fields.

File:
1 edited

Legend:

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

    r465 r468  
    793793    # activate the proper volume
    794794    set first [lindex [get] 0]
    795 
    796     set axis [$first hints updir]
    797     if {"" != $axis} {
    798         _send up $axis
     795    if {"" != $first} {
     796        set axis [$first hints updir]
     797        if {"" != $axis} {
     798            _send up $axis
     799        }
    799800    }
    800801
     
    940941        # nothing to send -- activate the proper volume
    941942        set first [lindex [get] 0]
    942 
    943         set axis [$first hints updir]
    944         if {"" != $axis} {
    945             _send up $axis
     943        if {"" != $first} {
     944            set axis [$first hints updir]
     945            if {"" != $axis} {
     946                _send up $axis
     947            }
    946948        }
    947949        foreach key [array names _obj2id *-*] {
     
    12191221
    12201222    set dataobj [lindex [get] 0]
     1223    if {"" == $dataobj} {
     1224        return
     1225    }
    12211226    set comp [lindex [$dataobj components] 0]
    12221227    if {![info exists _obj2style($dataobj-$comp)]} {
     
    13311336
    13321337    set dataobj [lindex [get] 0]
    1333     set comp [lindex [$dataobj components] 0]
    1334     if {[info exists _obj2id($dataobj-$comp)]} {
    1335         set ivol $_obj2id($dataobj-$comp)
     1338    if {"" != $dataobj} {
     1339        set comp [lindex [$dataobj components] 0]
     1340        if {[info exists _obj2id($dataobj-$comp)]} {
     1341            set ivol $_obj2id($dataobj-$comp)
     1342        }
    13361343    }
    13371344
Note: See TracChangeset for help on using the changeset viewer.