diff options
| author | Kenichi Handa | 2010-07-26 13:28:02 +0900 |
|---|---|---|
| committer | Kenichi Handa | 2010-07-26 13:28:02 +0900 |
| commit | dfe3c90fa5974e200483297e11bb889d0589b8f5 (patch) | |
| tree | 50c603b0bf35940798797e011859da695a69cf2a /src | |
| parent | dd86ea1155171345fd2e5bdae2cc2439ab851bc9 (diff) | |
| download | emacs-dfe3c90fa5974e200483297e11bb889d0589b8f5.tar.gz emacs-dfe3c90fa5974e200483297e11bb889d0589b8f5.zip | |
font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the number of glyphs gets smaller than the original length.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/font.c | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 414f22d3bfd..7e79e65b0c9 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2010-07-26 Kenichi Handa <handa@m17n.org> | ||
| 2 | |||
| 3 | * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the | ||
| 4 | number of glyphs gets smaller than the original length. | ||
| 5 | |||
| 1 | 2010-07-20 Juanma Barranquero <lekktu@gmail.com> | 6 | 2010-07-20 Juanma Barranquero <lekktu@gmail.com> |
| 2 | 7 | ||
| 3 | * alloc.c (emacs_blocked_free, emacs_blocked_malloc) | 8 | * alloc.c (emacs_blocked_free, emacs_blocked_malloc) |
diff --git a/src/font.c b/src/font.c index cb3e9c5d326..ed4da9c75ac 100644 --- a/src/font.c +++ b/src/font.c | |||
| @@ -4492,6 +4492,8 @@ created glyph-string. Otherwise, the value is nil. */) | |||
| 4492 | } | 4492 | } |
| 4493 | if (i == 3 || XINT (n) == 0) | 4493 | if (i == 3 || XINT (n) == 0) |
| 4494 | return Qnil; | 4494 | return Qnil; |
| 4495 | if (XINT (n) < LGSTRING_GLYPH_LEN (gstring)) | ||
| 4496 | LGSTRING_SET_GLYPH (gstring, XINT (n), Qnil); | ||
| 4495 | 4497 | ||
| 4496 | glyph = LGSTRING_GLYPH (gstring, 0); | 4498 | glyph = LGSTRING_GLYPH (gstring, 0); |
| 4497 | from = LGLYPH_FROM (glyph); | 4499 | from = LGLYPH_FROM (glyph); |