diff options
author | Philipp Gesang <phg@phi-gamma.net> | 2015-12-18 08:29:09 +0100 |
---|---|---|
committer | Philipp Gesang <phg@phi-gamma.net> | 2015-12-18 08:29:13 +0100 |
commit | 92b6110cfde6deb63e328d47965bfa6ea26d35a1 (patch) | |
tree | 01bf140c1f4c4d0a382226e9996e27816d759176 /src | |
parent | bc4588e5d5c4392cb1491c57d8c0f12e2221e215 (diff) | |
download | luaotfload-92b6110cfde6deb63e328d47965bfa6ea26d35a1.tar.gz |
[letterspace] fix access of invalid node field
This addresses one error reported by u/priyadarshan:
https://github.com/lualatex/luaotfload/issues/310
Some chained node field access got garbled during the update to nuts.
Diffstat (limited to 'src')
-rw-r--r-- | src/luaotfload-letterspace.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/luaotfload-letterspace.lua b/src/luaotfload-letterspace.lua index 5fa25f9..aa9157a 100644 --- a/src/luaotfload-letterspace.lua +++ b/src/luaotfload-letterspace.lua @@ -441,9 +441,9 @@ kerncharacters = function (head) setfield(after, "next", nil) replace = kerncharacters (before) replace = getnext(replace) - setfield(replace, "prev", nil) - setfield(after, "prev.next", nil) - setfield(disc, "replace", replace) + setfield(replace, "prev", nil) + setfield(getprev(after), "next", nil) + setfield(disc, "replace", replace) free_node(after) free_node(before) |