summaryrefslogtreecommitdiffstats
path: root/ds9/library/catdialog.tcl
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2018-03-14 18:05:45 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2018-03-14 18:05:45 (GMT)
commit5653c1de66efb783b20b2fe6576fb06b357c005b (patch)
treea760ffc1d27871886d4d4f0be7ce3e1b57133d9f /ds9/library/catdialog.tcl
parent1bbd30a2b46492aafbd58853ba9f0fbaa6e8cb32 (diff)
downloadblt-5653c1de66efb783b20b2fe6576fb06b357c005b.zip
blt-5653c1de66efb783b20b2fe6576fb06b357c005b.tar.gz
blt-5653c1de66efb783b20b2fe6576fb06b357c005b.tar.bz2
close catalog header if open when close catalog
Diffstat (limited to 'ds9/library/catdialog.tcl')
-rw-r--r--ds9/library/catdialog.tcl7
1 files changed, 7 insertions, 0 deletions
diff --git a/ds9/library/catdialog.tcl b/ds9/library/catdialog.tcl
index 466b279..86eff53 100644
--- a/ds9/library/catdialog.tcl
+++ b/ds9/library/catdialog.tcl
@@ -737,6 +737,13 @@ proc CATDestroy {varname} {
PlotDestroy $var(plot,var)
}
+ # cat header?
+ set vvarname ${varname}hdr
+ global $vvarname
+ if {[info exists $vvarname]} {
+ SimpleTextDestroy $vvarname
+ }
+
ARDestroy $varname
}