summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/mlib-pdf.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2020-08-31 22:42:33 +0200
committerContext Git Mirror Bot <phg@phi-gamma.net>2020-08-31 22:42:33 +0200
commit91db5eb6c95b185e3f1cc7aa0d04e1aeba1d4941 (patch)
tree5d4bb013051c1311118aac810d0d560fad54a648 /tex/context/base/mkiv/mlib-pdf.lua
parent0c426d0b6acb0d5595afd53f0fee52ee6ec6aa11 (diff)
downloadcontext-91db5eb6c95b185e3f1cc7aa0d04e1aeba1d4941.tar.gz
2020-08-31 22:04:00
Diffstat (limited to 'tex/context/base/mkiv/mlib-pdf.lua')
-rw-r--r--tex/context/base/mkiv/mlib-pdf.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/tex/context/base/mkiv/mlib-pdf.lua b/tex/context/base/mkiv/mlib-pdf.lua
index 44e78ba91..3945ffcfe 100644
--- a/tex/context/base/mkiv/mlib-pdf.lua
+++ b/tex/context/base/mkiv/mlib-pdf.lua
@@ -27,7 +27,7 @@ local copy_node = node.copy
local write_node = node.write
local pen_info = mplib.pen_info
-local object_fields = mplib.fields
+local getfields = mplib.getfields or mplib.fields -- todo: in lmtx get them once and then use gettype
local save_table = false
local force_stroke = false
@@ -744,9 +744,9 @@ function metapost.totable(result,askedfig)
for o=1,#objects do
local object = objects[o]
local result = { }
- local fields = object_fields(object) -- hm, is this the whole list, if so, we can get it once
+ local fields = getfields(object) -- hm, is this the whole list, if so, we can get it once
for f=1,#fields do
- local field = fields[f]
+ local field = fields[f]
result[field] = object[field]
end
results[o] = result