summaryrefslogtreecommitdiff
path: root/metapost
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2022-12-21 18:00:37 +0100
committerContext Git Mirror Bot <phg@phi-gamma.net>2022-12-21 18:00:37 +0100
commit36355f3d0c23357fccf2c76b3e9605a41cae519d (patch)
tree7b2bfa701a21ed8b075deba24112583461706770 /metapost
parent8f472c629a996f1c08281198210354a253d7f56b (diff)
downloadcontext-36355f3d0c23357fccf2c76b3e9605a41cae519d.tar.gz
2022-12-21 17:12:00
Diffstat (limited to 'metapost')
-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) ;