summaryrefslogtreecommitdiffstats
path: root/ds9/parsers/gridparser.tac
diff options
context:
space:
mode:
Diffstat (limited to 'ds9/parsers/gridparser.tac')
-rw-r--r--ds9/parsers/gridparser.tac2
1 files changed, 1 insertions, 1 deletions
diff --git a/ds9/parsers/gridparser.tac b/ds9/parsers/gridparser.tac
index c9aaa77..a67618b 100644
--- a/ds9/parsers/gridparser.tac
+++ b/ds9/parsers/gridparser.tac
@@ -74,7 +74,7 @@
#include numeric.trl
command : grid
- | grid {yyclearin; YYACCEPT} STRING_
+ | grid {global ds9; if {!$ds9(init)} {YYERROR} else {yyclearin; YYACCEPT}} STRING_
;
typegrid : ANALYSIS_ {set _ analysis}