Skip to content

Commit

Permalink
fix(core): Account for possibilty that there are no working fallbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed Jun 6, 2020
1 parent 3e73c38 commit 391f44e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/font-fallback.lua
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ SILE.shapers.harfbuzzWithFallback = pl.class({
end
end
local nItems = {} -- Remove holes
for i = 1, math.max(table.unpack(pl.tablex.keys(items))) do
for i = 1, math.max(0, table.unpack(pl.tablex.keys(items))) do
if items[i] then
nItems[#nItems+1] = items[i]
while items[i].next do
Expand Down

0 comments on commit 391f44e

Please sign in to comment.