From 8d448442950011295b60f1ea7385887e043388e9 Mon Sep 17 00:00:00 2001 From: Marius Date: Fri, 11 May 2012 14:40:13 +0300 Subject: beta 2012.05.11 13:19 --- metapost/context/base/mp-apos.mpiv | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'metapost') diff --git a/metapost/context/base/mp-apos.mpiv b/metapost/context/base/mp-apos.mpiv index 34dd57576..fad185b78 100644 --- a/metapost/context/base/mp-apos.mpiv +++ b/metapost/context/base/mp-apos.mpiv @@ -68,6 +68,7 @@ enddef ; def anch_sidebars_draw (expr p_b_self, p_e_self, y_b_self, y_e_self, h_b_self, d_e_self, x, y, w, h, alternative, distance, linewidth, linecolor, topoffset, bottomoffset) = + % beware, we anchor at (x,y) begingroup ; if alternative = 1 : interim linecap := rounded ; @@ -88,8 +89,8 @@ def anch_sidebars_draw (expr p_b_self, p_e_self, y_b_self, y_e_self, h_b_self, d a := (-distance,h) ; b := (-distance,0) ; fi ; - a := (xpart a, min(ypart a + topoffset, y+h)) ; - b := (xpart b, max(ypart b - bottomoffset,y )) ; + a := (xpart a, min(ypart a + topoffset, h)) ; + b := (xpart b, max(ypart b - bottomoffset,0)) ; draw a -- b if alternative = 1 : -- cgit v1.2.3