]> Dogcows Code - chaz/openbox/commitdiff
Ranges of 0 width cannot intersect (Fixes bug #3717)
authorDana Jansens <danakj@orodu.net>
Thu, 17 Dec 2009 15:22:05 +0000 (10:22 -0500)
committerDana Jansens <danakj@orodu.net>
Thu, 17 Dec 2009 15:24:48 +0000 (10:24 -0500)
openbox/geom.h

index 7c5ee32e31047643cbe0544072f0f419d3874967..6a1725e868050b2728abfe665eda783fa8bbc3ea 100644 (file)
@@ -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
This page took 0.024592 seconds and 4 git commands to generate.