summaryrefslogtreecommitdiffstats
path: root/ds9/library/envi.tcl
diff options
context:
space:
mode:
Diffstat (limited to 'ds9/library/envi.tcl')
-rw-r--r--ds9/library/envi.tcl6
1 files changed, 4 insertions, 2 deletions
diff --git a/ds9/library/envi.tcl b/ds9/library/envi.tcl
index 1f3d755..4425500 100644
--- a/ds9/library/envi.tcl
+++ b/ds9/library/envi.tcl
@@ -20,10 +20,12 @@ proc ImportENVIFile {hdr fn} {
proc ExportENVIFile {hdr fn opt} {
global current
- if {$fn == {} || $current(frame) == {}} {
+ if {$fn == {}} {
+ return
+ }
+ if {$current(frame) == {}} {
return
}
-
if {![$current(frame) has fits]} {
return
}