summaryrefslogtreecommitdiff
path: root/texmf-dist/tex/harftex/base/harf-node.lua
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-07 00:04:51 +0900
committerNorbert Preining <norbert@preining.info>2019-09-07 00:04:51 +0900
commitd5a587139a50bf7e9ae3c96759a85cb039f3509c (patch)
tree9ead93dfba56e2f57f05f9473d23385dbb066115 /texmf-dist/tex/harftex/base/harf-node.lua
parent86f5269fcc66b2c40900bd11f793534bc18da6f6 (diff)
harftex macros 0.4.1
Diffstat (limited to 'texmf-dist/tex/harftex/base/harf-node.lua')
-rw-r--r--texmf-dist/tex/harftex/base/harf-node.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/texmf-dist/tex/harftex/base/harf-node.lua b/texmf-dist/tex/harftex/base/harf-node.lua
index 24f66990..730a8735 100644
--- a/texmf-dist/tex/harftex/base/harf-node.lua
+++ b/texmf-dist/tex/harftex/base/harf-node.lua
@@ -738,7 +738,7 @@ local function tonodes(head, current, run, glyphs, color)
-- May be it is checking for the italic correction before we have had
-- loaded the glyph?
local prevchar, prevfontid = isglyph(current)
- if prevchar > 0 then
+ if prevchar and prevchar > 0 then
local prevfontdata = font.getfont(prevfontid)
local prevcharacters = prevfontdata and prevfontdata.characters
local italic = prevcharacters and prevcharacters[prevchar].italic