# HG changeset patch # User Kenichi Handa # Date 1203936111 0 # Node ID 7a2d829c5dc0cb4dcb273df0449138f3939e8601 # Parent e876aa43d9c53eb9488a1d838fd7c29a671b45b7 (x_produce_glyphs): For a visible glyph, assure at least 1-pixel width. diff -r e876aa43d9c5 -r 7a2d829c5dc0 src/xdisp.c --- a/src/xdisp.c Mon Feb 25 09:08:52 2008 +0000 +++ b/src/xdisp.c Mon Feb 25 10:41:51 2008 +0000 @@ -20925,6 +20925,10 @@ 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 @@ 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; }