Ranges of 0 width cannot intersect (Fixes bug #3717)

This commit is contained in:
Dana Jansens 2009-12-17 10:22:05 -05:00
parent 3eb941a392
commit d3347e8be3

View 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