1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-19 01:10:57 -08:00

Fix text decoration display on stretch glyphs with no box on NS

* src/nsterm.m (ns_dumpglyphs_stretch): Draw decorations if
there is no box.
This commit is contained in:
Po Lu 2021-12-24 15:48:27 +08:00
parent c9f05cbe3f
commit 552b74ba9e

View file

@ -3793,7 +3793,7 @@ ns_dumpglyphs_stretch (struct glyph_string *s)
then decorations will be drawn after drawing the box in
ns_draw_glyph_string, in order to prevent them from being
overwritten by the box. */
if (s->face->box != FACE_NO_BOX)
if (s->face->box == FACE_NO_BOX)
ns_draw_text_decoration (s, face, fgCol, NSWidth (glyphRect),
NSMinX (glyphRect));