summaryrefslogtreecommitdiff
path: root/Build/source/texk
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk')
-rw-r--r--Build/source/texk/dvipdfm-x/ChangeLog5
-rw-r--r--Build/source/texk/dvipdfm-x/specials.c8
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;