From d3347e8be3753b7a466353aece04a25992018c9a Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Thu, 17 Dec 2009 10:22:05 -0500 Subject: [PATCH] Ranges of 0 width cannot intersect (Fixes bug #3717) --- openbox/geom.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openbox/geom.h b/openbox/geom.h index 7c5ee32e..6a1725e8 100644 --- a/openbox/geom.h +++ b/openbox/geom.h @@ -160,6 +160,6 @@ typedef struct _StrutPartial { (s1).bottom_end == (s2).bottom_end) #define RANGES_INTERSECT(r1x, r1w, r2x, r2w) \ - (r1x < r2x + r2w && r1x + r1w > r2x) + (r1w && r2w && r1x < r2x + r2w && r1x + r1w > r2x) #endif -- 2.45.2