From 92b6110cfde6deb63e328d47965bfa6ea26d35a1 Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Fri, 18 Dec 2015 08:29:09 +0100 Subject: [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. --- src/luaotfload-letterspace.lua | 6 +++--- 1 file 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) -- cgit v1.2.3