diff options
author | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2021-01-16 05:54:04 +0000 |
---|---|---|
committer | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2021-01-16 05:54:04 +0000 |
commit | 77ab6ed5ef1f461991eac129796fcfa887c3576e (patch) | |
tree | e8fe1108d51542456ec973b4adfaaf9ca2803752 /Build/source/texk/web2c/luatexdir/pdf/pdftables.c | |
parent | 2787bcb50d7936fe64a7b4c389d373a432b8404d (diff) |
sync with the upstream
git-svn-id: svn://tug.org/texlive/trunk@57441 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/luatexdir/pdf/pdftables.c')
-rw-r--r-- | Build/source/texk/web2c/luatexdir/pdf/pdftables.c | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/Build/source/texk/web2c/luatexdir/pdf/pdftables.c b/Build/source/texk/web2c/luatexdir/pdf/pdftables.c index a97d0e39e85..2a02dcd98ec 100644 --- a/Build/source/texk/web2c/luatexdir/pdf/pdftables.c +++ b/Build/source/texk/web2c/luatexdir/pdf/pdftables.c @@ -224,8 +224,7 @@ void check_obj_type(PDF pdf, int t, int objnum) void set_rect_dimens(PDF pdf, halfword p, halfword parent_box, scaledpos cur, scaled_whd alt_rule, scaled margin) { /*tex The positions relative to cur: */ - scaledpos ll, ur; - scaledpos pos_ll, pos_ur, tmp; + scaledpos ll, ur, pos_ll, pos_ur; posstructure localpos; localpos.dir = pdf->posstruct->dir; /*tex |pdf| contains current point on page: */ @@ -246,16 +245,11 @@ void set_rect_dimens(PDF pdf, halfword p, halfword parent_box, scaledpos cur, sc pos_ll = localpos.pos; synch_pos_with_cur(&localpos, pdf->posstruct, ur); pos_ur = localpos.pos; - if (pos_ll.h > pos_ur.h) { - tmp.h = pos_ll.h; - pos_ll.h = pos_ur.h; - pos_ur.h = tmp.h; - } - if (pos_ll.v > pos_ur.v) { - tmp.v = pos_ll.v; - pos_ll.v = pos_ur.v; - pos_ur.v = tmp.v; - } + /* + The test for swapping has been moved to the moment we write the rectangle. This has to + do with the fact that we have code dealing with directions and that the |pdf_ann_*| + horizontal edges get recalculated in some places. + */ if (global_shipping_mode == SHIPPING_PAGE && matrixused()) { matrixtransformrect(pos_ll.h, pos_ll.v, pos_ur.h, pos_ur.v); pos_ll.h = getllx(); |