From 119149642b9d090d76e2ce17a2bfecddaf05b572 Mon Sep 17 00:00:00 2001 From: Hironori Kitagawa Date: Sun, 19 Aug 2012 19:18:54 +0900 Subject: [PATCH] Fix a bug introduced by commit 79c1a4f. --- src/ltj-jfont.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/ltj-jfont.lua b/src/ltj-jfont.lua index 9b791a6..59c8d5c 100644 --- a/src/ltj-jfont.lua +++ b/src/ltj-jfont.lua @@ -61,7 +61,12 @@ function define_jfm(t) elseif type(w) == 'string' and utf.len(w)==1 then real_char = true; w = utf.byte(w) elseif type(w) == 'string' and utf.len(w)==2 and utf.sub(w,2) == '*' then - real_char = true; w = -utf.byte(utf.sub(w,1,1)) + real_char = true; w = utf.byte(utf.sub(w,1,1)) + if not t.chars[-w] then + t.chars[-w] = i + else + defjfm_res= nil; return + end end if not t.chars[w] then t.chars[w] = i -- 2.11.0