summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/lpdf-res.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/mkiv/lpdf-res.lua')
-rw-r--r--tex/context/base/mkiv/lpdf-res.lua6
1 files changed, 2 insertions, 4 deletions
diff --git a/tex/context/base/mkiv/lpdf-res.lua b/tex/context/base/mkiv/lpdf-res.lua
index ca092c772..ac9478488 100644
--- a/tex/context/base/mkiv/lpdf-res.lua
+++ b/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