summaryrefslogtreecommitdiffstats
path: root/ds9/parsers/pagesetupparser.tac
diff options
context:
space:
mode:
Diffstat (limited to 'ds9/parsers/pagesetupparser.tac')
-rw-r--r--ds9/parsers/pagesetupparser.tac2
1 files changed, 1 insertions, 1 deletions
diff --git a/ds9/parsers/pagesetupparser.tac b/ds9/parsers/pagesetupparser.tac
index 20d7451..525287e 100644
--- a/ds9/parsers/pagesetupparser.tac
+++ b/ds9/parsers/pagesetupparser.tac
@@ -25,7 +25,7 @@
#include numeric.trl
command : pagesetup
- | pagesetup {yyclearin; YYACCEPT} STRING_
+ | pagesetup {global ds9; if {!$ds9(init)} {YYERROR} else {yyclearin; YYACCEPT}} STRING_
;
pagesetup : ORIENT_ orient {ProcessCmdSet ps orient $2}