diff options
author | Philipp Gesang <phg42.2a@gmail.com> | 2014-08-10 14:42:16 +0200 |
---|---|---|
committer | Philipp Gesang <phg42.2a@gmail.com> | 2014-08-10 14:42:16 +0200 |
commit | b94df6f9a869eb0bf705229246f19ec1fc2c43b1 (patch) | |
tree | 2291310121a03c5ae582d71cfe242eb74abf3dc2 /src | |
parent | 00a1bc35ec13b886e939b7bcf4324b8166adf4f2 (diff) | |
download | luaotfload-b94df6f9a869eb0bf705229246f19ec1fc2c43b1.tar.gz |
[fontloader] patch glyph reorganization to avoid error
This is a preliminary fix for https://github.com/lualatex/luaotfload/issues/248
It adds additional null checks, thereby suppressing the symptoms.
However, the real solution would probably have to tackle the actual
cause of the holes in the ``specification`` table in the first place.
Diffstat (limited to 'src')
-rw-r--r-- | src/luaotfload-fontloader.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/luaotfload-fontloader.lua b/src/luaotfload-fontloader.lua index 660524e..12b68a5 100644 --- a/src/luaotfload-fontloader.lua +++ b/src/luaotfload-fontloader.lua @@ -8310,7 +8310,7 @@ actions["reorganize glyph anchors"]=function(data,filename,raw) for tag,specification in next,data do for i=1,#specification do local si=specification[i] - specification[i]={ si.x or 0,si.y or 0 } + specification[i]={ si and si.x or 0,si and si.y or 0 } end end else |