]> git.eshelyaron.com Git - emacs.git/commitdiff
(x_produce_glyphs): For a visible glyph, assure at least
authorKenichi Handa <handa@m17n.org>
Mon, 25 Feb 2008 10:41:51 +0000 (10:41 +0000)
committerKenichi Handa <handa@m17n.org>
Mon, 25 Feb 2008 10:41:51 +0000 (10:41 +0000)
1-pixel width.

src/xdisp.c

index 1e2a667330e38e5e9727fd0a5b3dd93659065d1f..dd9036853ad67d6663d144562b2c026ac2bce76a 100644 (file)
@@ -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;
     }