>From 3d67a10859d68934ff520eeaa660f5e3c55c2c5b Mon Sep 17 00:00:00 2001 From: Alan Third Date: Thu, 27 Dec 2018 16:23:32 +0000 Subject: [PATCH] Fix NS fringe bitmap drawing bug (bug#33864) * src/nsterm.m (ns_draw_fringe_bitmap): Check the rectangle to clear correctly. --- src/nsterm.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nsterm.m b/src/nsterm.m index 6c285f0abb..a624f62817 100644 --- a/src/nsterm.m +++ b/src/nsterm.m @@ -3062,7 +3062,7 @@ so some key presses (TAB) are swallowed by the system. */ /* 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); -- 2.19.1