summaryrefslogtreecommitdiffstats
path: root/ds9/library/plotline.tcl
diff options
context:
space:
mode:
Diffstat (limited to 'ds9/library/plotline.tcl')
-rw-r--r--ds9/library/plotline.tcl7
1 files changed, 5 insertions, 2 deletions
diff --git a/ds9/library/plotline.tcl b/ds9/library/plotline.tcl
index 60f1d1b..44f71f2 100644
--- a/ds9/library/plotline.tcl
+++ b/ds9/library/plotline.tcl
@@ -226,12 +226,15 @@ proc PlotLineUpdateElement {varname} {
upvar #0 $varname var
global $varname
+ set tt $var(graph,total)
+ set cc $var(graph,current)
+
# warning: uses current vars
- if {$var(data,total) == 0} {
+ if {$tt == 0} {
return
}
- set nn $var(data,current)
+ set nn $var(graph$cc,data,current)
PlotGetVar $varname $nn
if {$var(fill)} {