diff options
Diffstat (limited to 'ds9/library/rgbcube.tcl')
-rw-r--r-- | ds9/library/rgbcube.tcl | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ds9/library/rgbcube.tcl b/ds9/library/rgbcube.tcl index 6bd3789..572bcc8 100644 --- a/ds9/library/rgbcube.tcl +++ b/ds9/library/rgbcube.tcl @@ -82,10 +82,12 @@ proc LoadRGBCubeSocket {sock fn} { proc SaveRGBCubeFile {fn} { global current - if {$fn == {} || $current(frame) == {}} { + if {$fn == {}} { + return + } + if {$current(frame) == {}} { return } - if {![$current(frame) has fits]} { return } @@ -99,7 +101,6 @@ proc SaveRGBCubeSocket {sock} { if {$current(frame) == {}} { return } - if {![$current(frame) has fits]} { return } |