summaryrefslogtreecommitdiff
path: root/tex/context/base/scrp-ini.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2011-06-26 13:23:00 +0200
committerHans Hagen <pragma@wxs.nl>2011-06-26 13:23:00 +0200
commitc06e3acd4fc31d61e31a7172ae36bae6b929e20a (patch)
tree9cf45a446abac4a91ce46bcb7df8cb360b8fe9a7 /tex/context/base/scrp-ini.lua
parentc987f1f9c3add1eb3ad06ce40e9e1f521793cf77 (diff)
downloadcontext-c06e3acd4fc31d61e31a7172ae36bae6b929e20a.tar.gz
beta 2011.06.26 13:23
Diffstat (limited to 'tex/context/base/scrp-ini.lua')
-rw-r--r--tex/context/base/scrp-ini.lua7
1 files changed, 6 insertions, 1 deletions
diff --git a/tex/context/base/scrp-ini.lua b/tex/context/base/scrp-ini.lua
index 0e1d450e2..6e33bac11 100644
--- a/tex/context/base/scrp-ini.lua
+++ b/tex/context/base/scrp-ini.lua
@@ -379,7 +379,12 @@ function scripts.preprocess(head)
if normal_process then
local f = start.font
if f ~= lastfont then
- originals = fontdata[f].resources.originals
+ originals = fontdata[f].resources
+ if resources then
+ originals = resources.originals
+ else
+ -- can't happen
+ end
lastfont = f
end
local c = start.char