From b0888be28c628d0f1e164442c4f3a34bfbdd7f40 Mon Sep 17 00:00:00 2001 From: Khaled Hosny Date: Thu, 31 Dec 2009 23:40:23 +0200 Subject: Only set page resources if existed --- luaotfload.dtx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'luaotfload.dtx') diff --git a/luaotfload.dtx b/luaotfload.dtx index 567cd37..86c5b8d 100644 --- a/luaotfload.dtx +++ b/luaotfload.dtx @@ -746,7 +746,9 @@ local function colorize(head) end local function finalize(head) - tex.pdfpageresources = format("%s\n/ExtGState<<%s>>", tex.pdfpageresources, res) + if res then + tex.pdfpageresources = format("%s\n/ExtGState<<%s>>", tex.pdfpageresources, res) + end return head end -- cgit v1.2.3