diff options
Diffstat (limited to 'tex/context/base/mkiv/anch-pgr.lua')
-rw-r--r-- | tex/context/base/mkiv/anch-pgr.lua | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tex/context/base/mkiv/anch-pgr.lua b/tex/context/base/mkiv/anch-pgr.lua index 5c79f70a1..468b9eee3 100644 --- a/tex/context/base/mkiv/anch-pgr.lua +++ b/tex/context/base/mkiv/anch-pgr.lua @@ -88,6 +88,9 @@ local enabled = false local function registerbackground(name) local n = #data + 1 if n > recycle then + -- we could also free all e: that are beyond a page but we don't always + -- know the page so a recycle is nicer and the s lists are kept anyway + -- so the amount of kept data is not that large n = 1 end local b = jobpositions.tobesaved["b:"..name] @@ -632,8 +635,8 @@ local function calculatemultipar(tag) local bn = b.n local p = bn and collected[f_p_tag(bn)] -- par if p then - left = left + p.ls - right = right + p.rs + left = left + (p.ls or 0) + right = right + (p.rs or 0) end -- local bp = b.p -- page |