[luatex] Bug in setpdforigin()

Andreas Matthias andreas.matthias at gmail.com
Sat Mar 18 14:13:28 CET 2023


Here's a bugfix for setpdforigin():

diff --git a/source/texk/web2c/luatexdir/lua/lpdflib.c
b/source/texk/web2c/luatexdir/lua/lpdflib.c
index 70fbde76b..263fd5644 100644
--- a/source/texk/web2c/luatexdir/lua/lpdflib.c
+++ b/source/texk/web2c/luatexdir/lua/lpdflib.c
@@ -1048,7 +1048,7 @@ static int setpdforigin(lua_State * L)
     if (lua_type(L, 1) == LUA_TNUMBER) {
         h = (int) lua_roundnumber(L, 1);
         if (lua_type(L, 2) == LUA_TNUMBER) {
-            v = (int) lua_roundnumber(L, 1);
+            v = (int) lua_roundnumber(L, 2);
         } else {
             v = h;
         }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/luatex/attachments/20230318/5ea8197c/attachment.html>


More information about the luatex mailing list.