summaryrefslogtreecommitdiffstats
path: root/ds9/parsers/psparser.tac
diff options
context:
space:
mode:
Diffstat (limited to 'ds9/parsers/psparser.tac')
-rw-r--r--ds9/parsers/psparser.tac2
1 files changed, 1 insertions, 1 deletions
diff --git a/ds9/parsers/psparser.tac b/ds9/parsers/psparser.tac
index faee8cd..aca229c 100644
--- a/ds9/parsers/psparser.tac
+++ b/ds9/parsers/psparser.tac
@@ -33,7 +33,7 @@
%%
command : ps
- | ps {yyclearin; YYACCEPT} STRING_
+ | ps {global ds9; if {!$ds9(init)} {YYERROR} else {yyclearin; YYACCEPT}} STRING_
;
ps : {PostScript}