From: Alan Third Date: Thu, 27 Dec 2018 16:23:32 +0000 (+0000) Subject: Fix NS fringe bitmap drawing bug (bug#33864) X-Git-Tag: emacs-26.1.91~23 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=a731c56;p=emacs.git Fix NS fringe bitmap drawing bug (bug#33864) * src/nsterm.m (ns_draw_fringe_bitmap): Check the rectangle to clear correctly. --- diff --git a/src/nsterm.m b/src/nsterm.m index 893bb1b4414..98a333d53ad 100644 --- a/src/nsterm.m +++ b/src/nsterm.m @@ -2919,7 +2919,7 @@ ns_draw_fringe_bitmap (struct window *w, struct glyph_row *row, /* Work out the rectangle we will need to clear. Because we're compositing rather than blitting, we need to clear the area under the image regardless of anything else. */ - if (!p->overlay_p) + if (p->bx >= 0 && !p->overlay_p) { clearRect = NSMakeRect (p->bx, p->by, p->nx, p->ny); clearRect = NSUnionRect (clearRect, imageRect);