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