From: Kenichi Handa Date: Mon, 25 Feb 2008 10:41:51 +0000 (+0000) Subject: (x_produce_glyphs): For a visible glyph, assure at least X-Git-Tag: emacs-pretest-23.0.90~7674 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=58bdf35535a667f06f6399a29e3faf90b694d935;p=emacs.git (x_produce_glyphs): For a visible glyph, assure at least 1-pixel width. --- 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; }