From 5130c7d4b7fe28571c2932ac22ed42aa3078e352 Mon Sep 17 00:00:00 2001 From: Akira Kakuto Date: Fri, 3 May 2019 03:29:25 +0000 Subject: 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 --- Build/source/texk/dvipdfm-x/specials.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Build/source/texk/dvipdfm-x/specials.c') 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; -- cgit v1.2.3