summaryrefslogtreecommitdiff
path: root/metapost/context/base/mpxl/mp-apos.mpxl
diff options
context:
space:
mode:
Diffstat (limited to 'metapost/context/base/mpxl/mp-apos.mpxl')
-rw-r--r--metapost/context/base/mpxl/mp-apos.mpxl3
1 files changed, 3 insertions, 0 deletions
diff --git a/metapost/context/base/mpxl/mp-apos.mpxl b/metapost/context/base/mpxl/mp-apos.mpxl
index a64229715..021edfc79 100644
--- a/metapost/context/base/mpxl/mp-apos.mpxl
+++ b/metapost/context/base/mpxl/mp-apos.mpxl
@@ -263,6 +263,9 @@ def anch_box_arrows_draw =
skip := (not spanpages) and ((mpvars("span")) = "yes") ;
if skip :
% we skip the second just in case
+ elseif alternative = "" :
+ message("invalid alternative in draw box arrow");
+ skip := true;
elseif alternative = "bottom" :
ff := (xpart f, min(ypart f, ypart t)) ;
tt := (xpart t, ypart ff) ;