diff options
Diffstat (limited to 'tex/context/base/node-bck.lua')
-rw-r--r-- | tex/context/base/node-bck.lua | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/tex/context/base/node-bck.lua b/tex/context/base/node-bck.lua index 35fdd3a36..2630df2f4 100644 --- a/tex/context/base/node-bck.lua +++ b/tex/context/base/node-bck.lua @@ -73,8 +73,10 @@ local function add_backgrounds(head) -- rather old code .. to be redone end rule.next = glue glue.prev = rule - glue.next = list - list.prev = glue + if list then + glue.next = list + list.prev = glue + end current.list = rule end end @@ -132,8 +134,10 @@ local function add_alignbackgrounds(head) end rule.next = glue glue.prev = rule - glue.next = list - list.prev = glue + if list then + glue.next = list + list.prev = glue + end current.list = rule end end |