summaryrefslogtreecommitdiffstats
path: root/ds9/parsers/wcsparser.tac
diff options
context:
space:
mode:
Diffstat (limited to 'ds9/parsers/wcsparser.tac')
-rw-r--r--ds9/parsers/wcsparser.tac2
1 files changed, 1 insertions, 1 deletions
diff --git a/ds9/parsers/wcsparser.tac b/ds9/parsers/wcsparser.tac
index ccd227f..1f0149d 100644
--- a/ds9/parsers/wcsparser.tac
+++ b/ds9/parsers/wcsparser.tac
@@ -29,7 +29,7 @@
#include skyformat.trl
command : wcs
- | wcs {yyclearin; YYACCEPT} STRING_
+ | wcs {global ds9; if {!$ds9(init)} {YYERROR} else {yyclearin; YYACCEPT}} STRING_
;
wcs : OPEN_ {WCSDialog}