]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix NS fringe bitmap drawing bug (bug#33864)
authorAlan Third <alan@idiocy.org>
Thu, 27 Dec 2018 16:23:32 +0000 (16:23 +0000)
committerAlan Third <alan@idiocy.org>
Fri, 28 Dec 2018 21:38:11 +0000 (21:38 +0000)
* src/nsterm.m (ns_draw_fringe_bitmap): Check the rectangle to clear
correctly.

src/nsterm.m

index 893bb1b4414b30188eef6db41ab71fff9e8123db..98a333d53ad2db1e1afb263f7d3f314a0e4f42e7 100644 (file)
@@ -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);