summaryrefslogtreecommitdiff
path: root/src/fontloader
diff options
context:
space:
mode:
authorPhilipp Gesang <phg@phi-gamma.net>2016-09-20 08:04:58 +0200
committerPhilipp Gesang <phg@phi-gamma.net>2016-09-20 08:05:01 +0200
commit83b27d3d2faa30ef518f1b5e0a4a87a74107a93c (patch)
tree1b63e4c6d9e91361d7555831c59f62e6001f1fda /src/fontloader
parent88d84645f2847c1cf383a5431134cedc22191458 (diff)
downloadluaotfload-2.8-rc1.tar.gz
[fontloader] HACK hot-patch loader to fix crashv2.8-rc1
Patch has been upstreamed for a while but no response yet.
Diffstat (limited to 'src/fontloader')
-rw-r--r--src/fontloader/misc/fontloader-font-ots.lua10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/fontloader/misc/fontloader-font-ots.lua b/src/fontloader/misc/fontloader-font-ots.lua
index da5d50a..1c64720 100644
--- a/src/fontloader/misc/fontloader-font-ots.lua
+++ b/src/fontloader/misc/fontloader-font-ots.lua
@@ -2752,10 +2752,12 @@ function otf.dataset(tfmdata,font) -- generic variant, overloaded in context
}
rs[language] = rl
local sequences = tfmdata.resources.sequences
- for s=1,#sequences do
- local v = enabled and initialize(sequences[s],script,language,enabled,autoscript,autolanguage)
- if v then
- rl[#rl+1] = v
+ if sequences then
+ for s=1,#sequences do
+ local v = enabled and initialize(sequences[s],script,language,enabled,autoscript,autolanguage)
+ if v then
+ rl[#rl+1] = v
+ end
end
end
end