summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/context/base/mkiv/lpdf-res.lua
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/context/base/mkiv/lpdf-res.lua')
-rw-r--r--Master/texmf-dist/tex/context/base/mkiv/lpdf-res.lua6
1 files changed, 2 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex/context/base/mkiv/lpdf-res.lua b/Master/texmf-dist/tex/context/base/mkiv/lpdf-res.lua
index ca092c772bf..ac94784889e 100644
--- a/Master/texmf-dist/tex/context/base/mkiv/lpdf-res.lua
+++ b/Master/texmf-dist/tex/context/base/mkiv/lpdf-res.lua
@@ -12,7 +12,7 @@ local implement = interfaces.implement
local nuts = nodes.nuts
local tonut = nodes.tonut
-local setfield = nuts.setfield
+local setwhd = nuts.setwhd
local setlist = nuts.setlist
local new_hlist = nuts.pool.hlist
@@ -29,9 +29,7 @@ function codeinjections.restoreboxresource(index)
local hbox = new_hlist()
local list, wd, ht, dp = useboxresource(index)
setlist(hbox,tonut(list))
- setfield(hbox,"width", wd)
- setfield(hbox,"height", ht)
- setfield(hbox,"depth", dp)
+ setwhd(hbox,wd,ht,dp)
return hbox -- so we return a nut !
end