summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Gesang <phg@phi-gamma.net>2015-12-18 08:29:09 +0100
committerPhilipp Gesang <phg@phi-gamma.net>2015-12-18 08:29:13 +0100
commit92b6110cfde6deb63e328d47965bfa6ea26d35a1 (patch)
tree01bf140c1f4c4d0a382226e9996e27816d759176
parentbc4588e5d5c4392cb1491c57d8c0f12e2221e215 (diff)
downloadluaotfload-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.
-rw-r--r--src/luaotfload-letterspace.lua6
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)