Commit dfe3c90f authored by Kenichi Handa's avatar Kenichi Handa
Browse files

font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the number of glyphs...

font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the number of glyphs gets smaller than the original length.
parent dd86ea11
2010-07-26 Kenichi Handa <handa@m17n.org>
* font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
number of glyphs gets smaller than the original length.
2010-07-20 Juanma Barranquero <lekktu@gmail.com>
 
* alloc.c (emacs_blocked_free, emacs_blocked_malloc)
......
......@@ -4492,6 +4492,8 @@ created glyph-string. Otherwise, the value is nil. */)
}
if (i == 3 || XINT (n) == 0)
return Qnil;
if (XINT (n) < LGSTRING_GLYPH_LEN (gstring))
LGSTRING_SET_GLYPH (gstring, XINT (n), Qnil);
glyph = LGSTRING_GLYPH (gstring, 0);
from = LGLYPH_FROM (glyph);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment