diff options
Diffstat (limited to 'ds9/library/plotbar.tcl')
-rw-r--r-- | ds9/library/plotbar.tcl | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/ds9/library/plotbar.tcl b/ds9/library/plotbar.tcl index 8372bf3..d5826d4 100644 --- a/ds9/library/plotbar.tcl +++ b/ds9/library/plotbar.tcl @@ -155,15 +155,13 @@ proc PlotBarUpdateElement {varname} { upvar #0 $varname var global $varname - set cc $var(graph,current) + PlotSaveState $varname - # warning: uses current vars + set cc $var(graph,current) if {$var($cc,data,total) == 0} { return } - PlotSaveState $varname - if {$var(graph,ds,error)} { set show both } else { |