summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/page-flt.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/mkiv/page-flt.lua')
-rw-r--r--tex/context/base/mkiv/page-flt.lua8
1 files changed, 6 insertions, 2 deletions
diff --git a/tex/context/base/mkiv/page-flt.lua b/tex/context/base/mkiv/page-flt.lua
index 7c2220840..8df38b406 100644
--- a/tex/context/base/mkiv/page-flt.lua
+++ b/tex/context/base/mkiv/page-flt.lua
@@ -51,6 +51,8 @@ local function initialize()
return {
text = { },
page = { },
+ top = { },
+ bottom = { },
leftpage = { },
rightpage = { },
somewhere = { },
@@ -317,11 +319,13 @@ function floats.checkedpagefloat(packed)
end
function floats.nofstacked(which)
- return #stacks[which or default] or 0
+ local s = stacks[which or default]
+ return s and #s or 0
end
function floats.hasstacked(which)
- return (#stacks[which or default] or 0) > 0
+ local s = stacks[which or default]
+ return (s and #s or 0) > 0
end
-- todo: check for digits !