]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix display of thin lines whose newline has line-height property of t
authorEli Zaretskii <eliz@gnu.org>
Wed, 12 Aug 2015 15:55:38 +0000 (18:55 +0300)
committerEli Zaretskii <eliz@gnu.org>
Wed, 12 Aug 2015 15:55:38 +0000 (18:55 +0300)
* src/xdisp.c (append_space_for_newline): Don't try to fix ascent
and descent values of non-empty glyph rows, since they could have
forced low values deliberately.  (Bug#21243)

src/xdisp.c

index 7371216d387cda5b0feaad5cae423345ca9ec03e..9b76174625223083f891740afdb3b78b06cf0473 100644 (file)
@@ -19229,7 +19229,7 @@ append_space_for_newline (struct it *it, bool default_face_p)
             funny, and height of empty lines will be incorrect.  */
          g = it->glyph_row->glyphs[TEXT_AREA] + n;
          struct font *font = face->font ? face->font : FRAME_FONT (it->f);
-         if (n == 0 || it->glyph_row->height < font->pixel_size)
+         if (n == 0)
            {
              Lisp_Object height, total_height;
              int extra_line_spacing = it->extra_line_spacing;