diff options
author | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2019-05-03 03:29:25 +0000 |
---|---|---|
committer | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2019-05-03 03:29:25 +0000 |
commit | 5130c7d4b7fe28571c2932ac22ed42aa3078e352 (patch) | |
tree | 289580ba323a383f4d490e67b24012eae6995e27 /Build/source/texk/dvipdfm-x | |
parent | 2573981e3f62e3fd924a8ea6caa2beb5f7833f44 (diff) |
Fix a bug that calculation of @xpos and @ypos was not done correctly. (S. Hirata)
git-svn-id: svn://tug.org/texlive/trunk@50958 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dvipdfm-x')
-rw-r--r-- | Build/source/texk/dvipdfm-x/ChangeLog | 5 | ||||
-rw-r--r-- | Build/source/texk/dvipdfm-x/specials.c | 8 |
2 files changed, 9 insertions, 4 deletions
diff --git a/Build/source/texk/dvipdfm-x/ChangeLog b/Build/source/texk/dvipdfm-x/ChangeLog index 549710ad3c8..9718c155c90 100644 --- a/Build/source/texk/dvipdfm-x/ChangeLog +++ b/Build/source/texk/dvipdfm-x/ChangeLog @@ -1,3 +1,8 @@ +2019-05-03 Shunsaku Hirata <shunsaku.hirata74@gmail.com> + + * specials.c: transformation applied to current point was not + done properly. + 2019-05-03 Akira Kakuto <kakuto@w32tex.org> * dpxfile.c, mfileio.h, pdfximage.c: Support non-ascii file diff --git a/Build/source/texk/dvipdfm-x/specials.c b/Build/source/texk/dvipdfm-x/specials.c index 794938f57fd..15f0d1706f4 100644 --- a/Build/source/texk/dvipdfm-x/specials.c +++ b/Build/source/texk/dvipdfm-x/specials.c @@ -169,12 +169,12 @@ spc_lookup_reference (const char *key) switch (k) { /* xpos and ypos must be position in device space here. */ case K_OBJ__XPOS: - cp.x = dvi_dev_xpos(); cp.y = 0.0; + cp.x = dvi_dev_xpos(); cp.y = dvi_dev_ypos(); pdf_dev_transform(&cp, NULL); value = pdf_new_number(ROUND(cp.x, .01)); break; case K_OBJ__YPOS: - cp.x = 0.0; cp.y = dvi_dev_ypos(); + cp.x = dvi_dev_xpos(); cp.y = dvi_dev_ypos(); pdf_dev_transform(&cp, NULL); value = pdf_new_number(ROUND(cp.y, .01)); break; @@ -233,12 +233,12 @@ spc_lookup_object (const char *key) for (k = 0; _rkeys[k] && strcmp(key, _rkeys[k]); k++); switch (k) { case K_OBJ__XPOS: - cp.x = dvi_dev_xpos(); cp.y = 0.0; + cp.x = dvi_dev_xpos(); cp.y = dvi_dev_ypos(); pdf_dev_transform(&cp, NULL); value = pdf_new_number(ROUND(cp.x, .01)); break; case K_OBJ__YPOS: - cp.x = 0.0; cp.y = dvi_dev_ypos(); + cp.x = dvi_dev_xpos(); cp.y = dvi_dev_ypos(); pdf_dev_transform(&cp, NULL); value = pdf_new_number(ROUND(cp.y, .01)); break; |