summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Gesang <phg@phi-gamma.net>2016-01-11 07:31:19 +0100
committerPhilipp Gesang <phg@phi-gamma.net>2016-01-11 07:31:19 +0100
commit5b0c1656911e5f2d436a8145fd046349ac1cb66f (patch)
treef354ca4147a8d4c9b9ee79bcad8dc175eb0e063b
parent0da58d888b0a125c9c44aa99c957d88f96c59f1f (diff)
downloadluaotfload-5b0c1656911e5f2d436a8145fd046349ac1cb66f.tar.gz
[fontloader] re-patch font-otn.lua to avoid crash
See issue https://github.com/lualatex/luaotfload/issues/303
-rw-r--r--src/fontloader/misc/fontloader-font-otn.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fontloader/misc/fontloader-font-otn.lua b/src/fontloader/misc/fontloader-font-otn.lua
index 8df01bd..b6f30c3 100644
--- a/src/fontloader/misc/fontloader-font-otn.lua
+++ b/src/fontloader/misc/fontloader-font-otn.lua
@@ -3894,7 +3894,7 @@ local function prepare_contextchains(tfmdata)
sequence[nofsequences] = after[n]
end
end
- if sequence[1] then
+ if sequence[start] then
-- Replacements only happen with reverse lookups as they are single only. We
-- could pack them into current (replacement value instead of true) and then
-- use sequence[start] instead but it's somewhat ugly.