summaryrefslogtreecommitdiff
path: root/tex/context/base/node-inj.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2010-02-24 22:28:00 +0100
committerHans Hagen <pragma@wxs.nl>2010-02-24 22:28:00 +0100
commit66aa7cfc8c9424ee0fe4e62a83b86dac39dc59a1 (patch)
tree51611577dc8b62bd54d559ccc469ca8e46713f82 /tex/context/base/node-inj.lua
parent8098b3762ab0700f87d8dd18e3c37e43b5b54357 (diff)
downloadcontext-66aa7cfc8c9424ee0fe4e62a83b86dac39dc59a1.tar.gz
beta 2010.02.24 22:28
Diffstat (limited to 'tex/context/base/node-inj.lua')
-rw-r--r--tex/context/base/node-inj.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/tex/context/base/node-inj.lua b/tex/context/base/node-inj.lua
index 4c5840978..9c4612a22 100644
--- a/tex/context/base/node-inj.lua
+++ b/tex/context/base/node-inj.lua
@@ -70,7 +70,8 @@ function nodes.set_pair(current,factor,rlmode,r2lflag,spec,tfmchr)
local bound = has_attribute(current,kernpair)
if bound then
local kb = kerns[bound]
- kb[2], kb[3], kb[4], kb[5] = kb[2] + x, kb[3] + y, kb[4] + w, kb[5] + h
+ -- inefficient but singles have less, but weird anyway, needs checking
+ kb[2], kb[3], kb[4], kb[5] = (kb[2] or 0) + x, (kb[3] or 0) + y, (kb[4] or 0)+ w, (kb[5] or 0) + h
else
bound = #kerns + 1
set_attribute(current,kernpair,bound)