summaryrefslogtreecommitdiffstats
path: root/ds9/library/graph.tcl
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2017-01-13 19:05:10 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2017-01-13 19:05:10 (GMT)
commitedea206c533053ec8d8a0851685c87551d035da3 (patch)
treec971a0e52d8028cd3adf01570a7e4cd6fae7eec7 /ds9/library/graph.tcl
parent33623ca22405a9493720c061d1a5bdb209188722 (diff)
downloadblt-edea206c533053ec8d8a0851685c87551d035da3.zip
blt-edea206c533053ec8d8a0851685c87551d035da3.tar.gz
blt-edea206c533053ec8d8a0851685c87551d035da3.tar.bz2
fix problem with graphs and image zoomed out
Diffstat (limited to 'ds9/library/graph.tcl')
-rw-r--r--ds9/library/graph.tcl14
1 files changed, 10 insertions, 4 deletions
diff --git a/ds9/library/graph.tcl b/ds9/library/graph.tcl
index 4e42610..ca507e9 100644
--- a/ds9/library/graph.tcl
+++ b/ds9/library/graph.tcl
@@ -261,13 +261,19 @@ proc UpdateGraph {which x y sys} {
if {[$which has fits]} {
if {$view(graph,horz)} {
- $which get horizontal cut graphHorzX graphHorzY $x $y $sys
- $ds9(graph,horz) element configure line1 -hide no
+ if {![catch {$which get horizontal cut graphHorzX graphHorzY $x $y $sys}]} {
+ $ds9(graph,horz) element configure line1 -hide no
+ } else {
+ $ds9(graph,horz) element configure line1 -hide yes
+ }
}
if {$view(graph,vert)} {
- $which get vertical cut graphVertX graphVertY $x $y $sys
- $ds9(graph,vert) element configure line1 -hide no
+ if {![catch {$which get vertical cut graphVertX graphVertY $x $y $sys}]} {
+ $ds9(graph,vert) element configure line1 -hide no
+ } else {
+ $ds9(graph,vert) element configure line1 -hide yes
+ }
}
}
}