summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/typo-dua.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/mkiv/typo-dua.lua')
-rw-r--r--tex/context/base/mkiv/typo-dua.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/tex/context/base/mkiv/typo-dua.lua b/tex/context/base/mkiv/typo-dua.lua
index ec2777919..4e2fc4600 100644
--- a/tex/context/base/mkiv/typo-dua.lua
+++ b/tex/context/base/mkiv/typo-dua.lua
@@ -209,7 +209,7 @@ local function build_list(head) -- todo: store node pointer ... saves loop
local skip = 0
local last = id
current = getnext(current)
- while n do
+ while current do
local id = getid(current)
if getprop(current,"directions") then
skip = skip + 1
@@ -224,7 +224,7 @@ local function build_list(head) -- todo: store node pointer ... saves loop
else
list[size] = { char = 0xFFFC, direction = "on", original = "on", level = 0, skip = skip, id = id, last = last }
end
- elseif id == glyph_code then
+ elseif chr then
local dir = directiondata[chr]
list[size] = { char = chr, direction = dir, original = dir, level = 0 }
current = getnext(current)