summaryrefslogtreecommitdiffstats
path: root/ds9/parsers/zscaleparser.tac
diff options
context:
space:
mode:
Diffstat (limited to 'ds9/parsers/zscaleparser.tac')
-rw-r--r--ds9/parsers/zscaleparser.tac4
1 files changed, 2 insertions, 2 deletions
diff --git a/ds9/parsers/zscaleparser.tac b/ds9/parsers/zscaleparser.tac
index a0b3021..97ce687 100644
--- a/ds9/parsers/zscaleparser.tac
+++ b/ds9/parsers/zscaleparser.tac
@@ -18,10 +18,10 @@
#include numeric.trl
command : zscale
- | zscale {yyclearin; YYACCEPT} STRING_
+ | zscale {global ds9; if {!$ds9(init)} {YYERROR} else {yyclearin; YYACCEPT}} STRING_
;
-zscale : yesno {ProcessCmdSet scale mode zscale ChangeScaleMode}
+zscale : {ProcessCmdSet scale mode zscale ChangeScaleMode}
| CONTRAST_ numeric {ProcessCmdSet zscale contrast $2 ChangeZScale}
| SAMPLE_ INT_ {ProcessCmdSet zscale sample $2 ChangeZScale}
| LINE_ INT_ {ProcessCmdSet zscale line $2 ChangeZScale}