[luatex] Bug in setpdforigin()

luigi scarso luigi.scarso at gmail.com
Thu Mar 30 00:49:50 CEST 2023


On Sat, 18 Mar 2023 at 14:14, Andreas Matthias <andreas.matthias at gmail.com>
wrote:

> 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;
>          }
>

Pushed
 3b8bb1ebb bugfix for setpdforigin()  (A. Matthias)

--
luigi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/luatex/attachments/20230330/1037d62b/attachment.html>


More information about the luatex mailing list.