diff options
Diffstat (limited to 'ds9/library/nrrd.tcl')
-rw-r--r-- | ds9/library/nrrd.tcl | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ds9/library/nrrd.tcl b/ds9/library/nrrd.tcl index 8307b53..e324647 100644 --- a/ds9/library/nrrd.tcl +++ b/ds9/library/nrrd.tcl @@ -55,10 +55,12 @@ proc ImportNRRDSocket {sock fn layer} { proc ExportNRRDFile {fn opt} { global current - if {$fn == {} || $current(frame) == {}} { + if {$fn == {}} { + return + } + if {$current(frame) == {}} { return } - if {![$current(frame) has fits]} { return } @@ -72,7 +74,6 @@ proc ExportNRRDSocket {sock opt} { if {$current(frame) == {}} { return } - if {![$current(frame) has fits]} { return } |