summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2009-12-31 23:40:23 +0200
committerKhaled Hosny <khaledhosny@eglug.org>2009-12-31 23:40:23 +0200
commitb0888be28c628d0f1e164442c4f3a34bfbdd7f40 (patch)
tree6129f1d61d5e1b02bae322d4bc5bc3cd64fa2878
parent7a4089c8a2e03094284c0484b216f9fa72be3a73 (diff)
downloadluaotfload-b0888be28c628d0f1e164442c4f3a34bfbdd7f40.tar.gz
Only set page resources if existed
-rw-r--r--luaotfload.dtx4
1 files changed, 3 insertions, 1 deletions
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