summaryrefslogtreecommitdiffstats
path: root/ds9/parsers/heightparser.tac
diff options
context:
space:
mode:
Diffstat (limited to 'ds9/parsers/heightparser.tac')
-rw-r--r--ds9/parsers/heightparser.tac2
1 files changed, 1 insertions, 1 deletions
diff --git a/ds9/parsers/heightparser.tac b/ds9/parsers/heightparser.tac
index 620c5df..828c773 100644
--- a/ds9/parsers/heightparser.tac
+++ b/ds9/parsers/heightparser.tac
@@ -10,7 +10,7 @@
%%
command : height
- | height {yyclearin; YYACCEPT} STRING_
+ | height {global ds9; if {!$ds9(init)} {YYERROR} else {yyclearin; YYACCEPT}} STRING_
;
height : INT_ {ProcessCmdSet canvas height $1 UpdateView}