aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenichi Handa2008-02-25 10:41:51 +0000
committerKenichi Handa2008-02-25 10:41:51 +0000
commit58bdf35535a667f06f6399a29e3faf90b694d935 (patch)
tree793dbf6d46a38148df6c0fda7d0b84a2b3567131 /src
parent9bde1a21ac92b56c2e814b9ff1dc41eb77eb9750 (diff)
downloademacs-58bdf35535a667f06f6399a29e3faf90b694d935.tar.gz
emacs-58bdf35535a667f06f6399a29e3faf90b694d935.zip
(x_produce_glyphs): For a visible glyph, assure at least
1-pixel width.
Diffstat (limited to 'src')
-rw-r--r--src/xdisp.c8
1 files changed, 8 insertions, 0 deletions
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)
20925 if (pcm && (pcm->lbearing < 0 || pcm->rbearing > pcm->width)) 20925 if (pcm && (pcm->lbearing < 0 || pcm->rbearing > pcm->width))
20926 it->glyph_row->contains_overlapping_glyphs_p = 1; 20926 it->glyph_row->contains_overlapping_glyphs_p = 1;
20927 } 20927 }
20928 if (! stretched_p && it->pixel_width == 0)
20929 /* We assure that all visible glyphs have at least 1-pixel
20930 width. */
20931 it->pixel_width = 1;
20928 } 20932 }
20929 else if (it->char_to_display == '\n') 20933 else if (it->char_to_display == '\n')
20930 { 20934 {
@@ -21109,6 +21113,10 @@ x_produce_glyphs (it)
21109 21113
21110 if (it->glyph_row) 21114 if (it->glyph_row)
21111 append_glyph (it); 21115 append_glyph (it);
21116 if (it->pixel_width == 0)
21117 /* We assure that all visible glyphs have at least 1-pixel
21118 width. */
21119 it->pixel_width = 1;
21112 } 21120 }
21113 it->multibyte_p = saved_multibyte_p; 21121 it->multibyte_p = saved_multibyte_p;
21114 } 21122 }