summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/lualatex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2022-03-12 20:35:22 +0000
committerKarl Berry <karl@freefriends.org>2022-03-12 20:35:22 +0000
commita2b9f79161ea17b191407293ff9fb28fe15cfdaf (patch)
tree7e0ac32018283cc990cc80d8c414ec175b48ef3b /Master/texmf-dist/tex/lualatex
parent59ff8f4e94052fa74de0630c02c6f72099e9f60b (diff)
linebreaker (12mar22) (branch)
git-svn-id: svn://tug.org/texlive/branches/branch2021.final@62664 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/lualatex')
-rw-r--r--Master/texmf-dist/tex/lualatex/linebreaker/linebreaker.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/Master/texmf-dist/tex/lualatex/linebreaker/linebreaker.lua b/Master/texmf-dist/tex/lualatex/linebreaker/linebreaker.lua
index e6c05d4fdf7..6a2d20e074b 100644
--- a/Master/texmf-dist/tex/lualatex/linebreaker/linebreaker.lua
+++ b/Master/texmf-dist/tex/lualatex/linebreaker/linebreaker.lua
@@ -331,7 +331,7 @@ function linebreaker.last_line_width(head)
end
end
-- something went wrong, so discard this solution
- if not n.head then return 0 end
+ if not n.head or not n.glue_set then return 0 end
w, _, _ = node.dimensions(n.glue_set, n.glue_sign, n.glue_order, n.head)
w1, _, _ = node.dimensions(n.glue_set, n.glue_sign, n.glue_order, n)
return w