Ranges of 0 width cannot intersect (Fixes bug #3717)
This commit is contained in:
parent
3eb941a392
commit
d3347e8be3
1 changed files with 1 additions and 1 deletions
|
@ -160,6 +160,6 @@ typedef struct _StrutPartial {
|
||||||
(s1).bottom_end == (s2).bottom_end)
|
(s1).bottom_end == (s2).bottom_end)
|
||||||
|
|
||||||
#define RANGES_INTERSECT(r1x, r1w, r2x, r2w) \
|
#define RANGES_INTERSECT(r1x, r1w, r2x, r2w) \
|
||||||
(r1x < r2x + r2w && r1x + r1w > r2x)
|
(r1w && r2w && r1x < r2x + r2w && r1x + r1w > r2x)
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue