diff options
Diffstat (limited to 'ds9/library/load.tcl')
-rw-r--r-- | ds9/library/load.tcl | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/ds9/library/load.tcl b/ds9/library/load.tcl index f3095da..2371c70 100644 --- a/ds9/library/load.tcl +++ b/ds9/library/load.tcl @@ -204,21 +204,20 @@ proc ProcessLoadSaveParams {varname} { global loadParam global current - switch $loadParam(load,layer) { - mask { - global $varname - if {[info exists $varname]} { - set varname "$varname.m[$current(frame) get mask count]" - } + if {$loadParam(load,layer) == {mask}} { + global $varname + if {[info exists $varname]} { + set varname "$varname.m[$current(frame) get mask count]" } - } - switch $loadParam(file,mode) { - slice - - {mosaic wcs} - - {mosaic iraf} { - global $varname - if {[info exists $varname]} { - set varname "$varname.[$current(frame) get fits count]" + } else { + switch $loadParam(file,mode) { + slice - + {mosaic wcs} - + {mosaic iraf} { + global $varname + if {[info exists $varname]} { + set varname "$varname.[$current(frame) get fits count]" + } } } } |