changeset 92201:7a2d829c5dc0

(x_produce_glyphs): For a visible glyph, assure at least 1-pixel width.
author Kenichi Handa <handa@m17n.org>
date Mon, 25 Feb 2008 10:41:51 +0000
parents e876aa43d9c5
children c54b46f3dbb6
files src/xdisp.c
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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;
     }