From: Gerd Möllmann Date: Thu, 27 Feb 2025 05:56:02 +0000 (+0100) Subject: * src/dispnew.c (rect_intersect): Fix a typo (bug#76592) X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c0f6c81384736c5c7fb22eae2592879c69d9487d;p=emacs.git * src/dispnew.c (rect_intersect): Fix a typo (bug#76592) (cherry picked from commit 3de9994b9e7acf2a05e6b661a7cd440b7cb0365b) --- diff --git a/src/dispnew.c b/src/dispnew.c index f7dbeb22b40..3bbc87f8711 100644 --- a/src/dispnew.c +++ b/src/dispnew.c @@ -3290,7 +3290,7 @@ rect_intersect (struct rect *r, struct rect r1, struct rect r2) int w = min (r1.x + r1.w, r2.x + r2.w) - x; int h = min (r1.y + r1.h, r2.y + r2.h) - y; - if (w == 0 || h == 0) + if (w <= 0 || h <= 0) return false; *r = (struct rect) { .x = x, .y = y, .w = w, .h = h };