diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/xdisp.c | 6 |
2 files changed, 6 insertions, 5 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index eebb10fb472..d291f5f4e64 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,10 @@ | |||
| 1 | 2012-02-02 Kenichi Handa <handa@m17n.org> | 1 | 2012-02-02 Kenichi Handa <handa@m17n.org> |
| 2 | 2 | ||
| 3 | (x_produce_glyphs): Cancel previous change. If cmp->glyph_len is | ||
| 4 | 0, do not call append_composite_glyph. | ||
| 5 | |||
| 6 | 2012-02-02 Kenichi Handa <handa@m17n.org> | ||
| 7 | |||
| 3 | * xdisp.c (BUILD_COMPOSITE_GLYPH_STRING): Initialize first_s to | 8 | * xdisp.c (BUILD_COMPOSITE_GLYPH_STRING): Initialize first_s to |
| 4 | NULL (Bug#6988). | 9 | NULL (Bug#6988). |
| 5 | (x_produce_glyphs): If the component of a composition is a null | 10 | (x_produce_glyphs): If the component of a composition is a null |
diff --git a/src/xdisp.c b/src/xdisp.c index 864517b950c..75ea519e82e 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -24595,10 +24595,6 @@ x_produce_glyphs (struct it *it) | |||
| 24595 | it->glyph_row->contains_overlapping_glyphs_p = 1; | 24595 | it->glyph_row->contains_overlapping_glyphs_p = 1; |
| 24596 | 24596 | ||
| 24597 | it->pixel_width = cmp->pixel_width; | 24597 | it->pixel_width = cmp->pixel_width; |
| 24598 | if (it->pixel_width == 0) | ||
| 24599 | /* We assure that all visible glyphs have at least 1-pixel | ||
| 24600 | width. */ | ||
| 24601 | it->pixel_width = 1; | ||
| 24602 | it->ascent = it->phys_ascent = cmp->ascent; | 24598 | it->ascent = it->phys_ascent = cmp->ascent; |
| 24603 | it->descent = it->phys_descent = cmp->descent; | 24599 | it->descent = it->phys_descent = cmp->descent; |
| 24604 | if (face->box != FACE_NO_BOX) | 24600 | if (face->box != FACE_NO_BOX) |
| @@ -24630,7 +24626,7 @@ x_produce_glyphs (struct it *it) | |||
| 24630 | if (it->descent < 0) | 24626 | if (it->descent < 0) |
| 24631 | it->descent = 0; | 24627 | it->descent = 0; |
| 24632 | 24628 | ||
| 24633 | if (it->glyph_row) | 24629 | if (it->glyph_row && cmp->glyph_len > 0) |
| 24634 | append_composite_glyph (it); | 24630 | append_composite_glyph (it); |
| 24635 | } | 24631 | } |
| 24636 | else if (it->what == IT_COMPOSITION) | 24632 | else if (it->what == IT_COMPOSITION) |