diff options
Diffstat (limited to 'source')
-rw-r--r-- | source/fitz/geometry.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/fitz/geometry.c b/source/fitz/geometry.c index 1d3d0f66..7a8d162b 100644 --- a/source/fitz/geometry.c +++ b/source/fitz/geometry.c @@ -547,8 +547,8 @@ int fz_contains_rect(const fz_rect *a, const fz_rect *b) return 1; if (fz_is_empty_rect(a)) return 0; - return ((a->x0 > b->x0) || - (a->y0 > b->y0) || - (a->x1 < b->x1) || - (a->y1 < b->y1)); + return ((a->x0 <= b->x0) && + (a->y0 <= b->y0) && + (a->x1 >= b->x1) && + (a->y1 >= b->y1)); } |