summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/page-mix.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2021-05-25 18:41:45 +0200
committerContext Git Mirror Bot <phg@phi-gamma.net>2021-05-25 18:41:45 +0200
commitddc77c560834122fcdc0219f01977cb830a7a6f5 (patch)
tree71df057ec2dfbb5f51091baa96b2671ad62c1580 /tex/context/base/mkiv/page-mix.lua
parent7fd782dace8f90e7e032ca8f449f8ca4eada450b (diff)
downloadcontext-ddc77c560834122fcdc0219f01977cb830a7a6f5.tar.gz
2021-05-25 17:56:00
Diffstat (limited to 'tex/context/base/mkiv/page-mix.lua')
-rw-r--r--tex/context/base/mkiv/page-mix.lua7
1 files changed, 4 insertions, 3 deletions
diff --git a/tex/context/base/mkiv/page-mix.lua b/tex/context/base/mkiv/page-mix.lua
index 443f25e56..374ba8866 100644
--- a/tex/context/base/mkiv/page-mix.lua
+++ b/tex/context/base/mkiv/page-mix.lua
@@ -59,7 +59,7 @@ local getnext = nuts.getnext
local getprev = nuts.getprev
local getid = nuts.getid
local getlist = nuts.getlist
-local getsubtype = nuts.getsubtype
+local getindex = nuts.getindex
local getbox = nuts.getbox
local getattr = nuts.getattr
local getwhd = nuts.getwhd
@@ -121,7 +121,7 @@ local function collectinserts(result,nxt,nxtid)
i = i + 1
result.i = i
inserttotal = inserttotal + getheight(nxt) -- height includes depth (hm, still? needs checking)
- local s = getsubtype(nxt)
+ local s = getindex(nxt)
local c = inserts[s]
if trace_details then
report_state("insert of class %s found",s)
@@ -987,7 +987,8 @@ local function getsplit(result,n)
setdepth(list[i],0)
end
local b = vpack(l) -- multiple arguments, todo: fastvpack
- setbox("global",c,b) -- when we wrap in a box
+-- setbox("global",c,b) -- when we wrap in a box
+ tex.setinsertcontent(c,tonode(b)) -- when we wrap in a box
r.inserts[c] = nil
end