From 58bdf35535a667f06f6399a29e3faf90b694d935 Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Mon, 25 Feb 2008 10:41:51 +0000 Subject: [PATCH] (x_produce_glyphs): For a visible glyph, assure at least 1-pixel width. --- src/xdisp.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/xdisp.c b/src/xdisp.c index 1e2a667330e..dd9036853ad 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -20925,6 +20925,10 @@ x_produce_glyphs (it) if (pcm && (pcm->lbearing < 0 || pcm->rbearing > pcm->width)) it->glyph_row->contains_overlapping_glyphs_p = 1; } + if (! stretched_p && it->pixel_width == 0) + /* We assure that all visible glyphs have at least 1-pixel + width. */ + it->pixel_width = 1; } else if (it->char_to_display == '\n') { @@ -21109,6 +21113,10 @@ x_produce_glyphs (it) if (it->glyph_row) append_glyph (it); + if (it->pixel_width == 0) + /* We assure that all visible glyphs have at least 1-pixel + width. */ + it->pixel_width = 1; } it->multibyte_p = saved_multibyte_p; } -- 2.39.5