summaryrefslogtreecommitdiffstats
path: root/ds9/library/rgbarray.tcl
diff options
context:
space:
mode:
Diffstat (limited to 'ds9/library/rgbarray.tcl')
-rw-r--r--ds9/library/rgbarray.tcl7
1 files changed, 4 insertions, 3 deletions
diff --git a/ds9/library/rgbarray.tcl b/ds9/library/rgbarray.tcl
index 74239df..2f40d0a 100644
--- a/ds9/library/rgbarray.tcl
+++ b/ds9/library/rgbarray.tcl
@@ -98,10 +98,12 @@ proc ImportRGBArraySocket {sock fn} {
proc ExportRGBArrayFile {fn opt} {
global current
- if {$fn == {} || $current(frame) == {}} {
+ if {$fn == {}} {
+ return
+ }
+ if {$current(frame) == {}} {
return
}
-
if {![$current(frame) has fits]} {
return
}
@@ -115,7 +117,6 @@ proc ExportRGBArraySocket {sock opt} {
if {$current(frame) == {}} {
return
}
-
if {![$current(frame) has fits]} {
return
}