diff options
author | Elie Roux <eroux@dedibox.ebzao.info> | 2010-01-20 13:10:23 +0100 |
---|---|---|
committer | Elie Roux <eroux@dedibox.ebzao.info> | 2010-01-20 13:10:23 +0100 |
commit | 1588a9673bb14157388a3f808ea0eee32c9d9bbf (patch) | |
tree | 154a7829b47dada67a0f9373f5bd116476308dd0 | |
parent | d7ac7e182bf0c14ec1341d2dd392f0258a430d68 (diff) | |
download | luaotfload-1588a9673bb14157388a3f808ea0eee32c9d9bbf.tar.gz |
Bug fixing
Fixing a bug when mixing colored and non-colored fonts.
-rw-r--r-- | otfl-font-msc.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/otfl-font-msc.lua b/otfl-font-msc.lua index 491229b..cc16d3d 100644 --- a/otfl-font-msc.lua +++ b/otfl-font-msc.lua @@ -121,7 +121,11 @@ local sbox = node.id('sub_box') local function lookup_next_color(head) for n in node.traverse(head) do if n.id == glyph then - return fonts.ids[n.font].color + if fonts.ids[n.font] and fonts.ids[n.font].color then + return fonts.ids[n.font].color + else + return -1 + end elseif n.id == vlist or n.id == hlist or n.id == sbox then local r = lookup_next_color(n.list) if r == -1 then |