summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/driv-shp.lmt
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2020-07-30 17:51:33 +0200
committerContext Git Mirror Bot <phg@phi-gamma.net>2020-07-30 17:51:33 +0200
commit4619c6e66ef47e8e4953142a5c65467a6b0a2c01 (patch)
tree68b96931ee0c1373695ef0a0f85d1c6433febc45 /tex/context/base/mkiv/driv-shp.lmt
parent54af717a5c864e61d2ccd773457af149a90d900a (diff)
downloadcontext-4619c6e66ef47e8e4953142a5c65467a6b0a2c01.tar.gz
2020-07-30 16:52:00
Diffstat (limited to 'tex/context/base/mkiv/driv-shp.lmt')
-rw-r--r--tex/context/base/mkiv/driv-shp.lmt17
1 files changed, 6 insertions, 11 deletions
diff --git a/tex/context/base/mkiv/driv-shp.lmt b/tex/context/base/mkiv/driv-shp.lmt
index 2e9751b9c..6e4195588 100644
--- a/tex/context/base/mkiv/driv-shp.lmt
+++ b/tex/context/base/mkiv/driv-shp.lmt
@@ -588,7 +588,6 @@ local hlist_out, vlist_out do
-- we can encounter localpar, boundary and penalty nodes but a special
-- iterator over content nodes won't save much
-
for current, id, subtype in nextnode, current do
if id == glyph_code then
local char, font = isglyph(current)
@@ -1034,17 +1033,13 @@ local hlist_out, vlist_out do
if not orientation then
-- local basepoint_h = shift
-- local basepoint_v = height
- if shift == 0 then
- pos_h = ref_h
+ if boxdir ~= pos_r then
+ shift = shift + width
+ end
+ if pos_r == righttoleft_code then
+ pos_h = ref_h - shift
else
- if boxdir ~= pos_r then
- shift = shift + width
- end
- if pos_r == righttoleft_code then
- pos_h = ref_h - shift
- else
- pos_h = ref_h + shift
- end
+ pos_h = ref_h + shift
end
pos_v = ref_v - (cur_v + height)
-- synced