summaryrefslogtreecommitdiff
path: root/luaotfload-extralibs.lua
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2013-08-31 12:21:33 +0200
committerPhilipp Gesang <phg42.2a@gmail.com>2013-08-31 12:21:33 +0200
commit57ed66cba09408ce5520668cc75482ccda490ef8 (patch)
treeb3f22e0e63eb452a92d675c1de817efb4e7ed87f /luaotfload-extralibs.lua
parentd37b2982fe11f4d476b6dbc4c33065682af3855b (diff)
downloadluaotfload-57ed66cba09408ce5520668cc75482ccda490ef8.tar.gz
[extralibs] compensate for missing “resources” field
Diffstat (limited to 'luaotfload-extralibs.lua')
-rw-r--r--luaotfload-extralibs.lua7
1 files changed, 6 insertions, 1 deletions
diff --git a/luaotfload-extralibs.lua b/luaotfload-extralibs.lua
index 5444b30..d04ba5b 100644
--- a/luaotfload-extralibs.lua
+++ b/luaotfload-extralibs.lua
@@ -211,7 +211,12 @@ if not markdata then
if k == true then
return marks[currentfont()]
else
- local resources = identifiers[k].resources or { }
+ local resources = { }
+
+ if identifiers[k] then
+ resources = identifiers[k].resources or { }
+ end
+
local marks = resources.marks or { }
t[k] = marks
return marks