From 57ed66cba09408ce5520668cc75482ccda490ef8 Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Sat, 31 Aug 2013 12:21:33 +0200 Subject: =?UTF-8?q?[extralibs]=20compensate=20for=20missing=20=E2=80=9Cres?= =?UTF-8?q?ources=E2=80=9D=20field?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- luaotfload-extralibs.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'luaotfload-extralibs.lua') 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 -- cgit v1.2.3