summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2014-08-10 14:42:16 +0200
committerPhilipp Gesang <phg42.2a@gmail.com>2014-08-10 14:42:16 +0200
commitb94df6f9a869eb0bf705229246f19ec1fc2c43b1 (patch)
tree2291310121a03c5ae582d71cfe242eb74abf3dc2
parent00a1bc35ec13b886e939b7bcf4324b8166adf4f2 (diff)
downloadluaotfload-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.
-rw-r--r--src/luaotfload-fontloader.lua2
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