diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index 5a78dd48c10..cd4683a71b9 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -20853,9 +20853,15 @@ x_produce_glyphs (it) | |||
| 20853 | 20853 | ||
| 20854 | if (font_not_found_p || !pcm) | 20854 | if (font_not_found_p || !pcm) |
| 20855 | { | 20855 | { |
| 20856 | int char_width = CHAR_WIDTH (it->char_to_display); | ||
| 20857 | |||
| 20858 | if (char_width == 0) | ||
| 20859 | /* This is a non spacing character. But, as we are | ||
| 20860 | going to display an empty box, the box must occupy | ||
| 20861 | at least one column. */ | ||
| 20862 | char_width = 1; | ||
| 20856 | it->glyph_not_available_p = 1; | 20863 | it->glyph_not_available_p = 1; |
| 20857 | it->pixel_width = (FRAME_COLUMN_WIDTH (it->f) | 20864 | it->pixel_width = FRAME_COLUMN_WIDTH (it->f) * char_width; |
| 20858 | * CHAR_WIDTH (it->char_to_display)); | ||
| 20859 | it->phys_ascent = FONT_BASE (font) + boff; | 20865 | it->phys_ascent = FONT_BASE (font) + boff; |
| 20860 | it->phys_descent = FONT_DESCENT (font) - boff; | 20866 | it->phys_descent = FONT_DESCENT (font) - boff; |
| 20861 | } | 20867 | } |