From 9e0748e223cfb8c5557c73f3ab5068ec1323e7c2 Mon Sep 17 00:00:00 2001 From: Adrian Johnson Date: Wed, 27 Mar 2013 08:08:32 +1030 Subject: pdf: fix typo in bbox check http://lists.cairographics.org/archives/cairo/2013-March/024186.html --- src/cairo-pdf-surface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cairo-pdf-surface.c b/src/cairo-pdf-surface.c index f58062a0..1b76ca9a 100644 --- a/src/cairo-pdf-surface.c +++ b/src/cairo-pdf-surface.c @@ -2129,7 +2129,7 @@ _cairo_pdf_surface_add_padded_image_surface (cairo_pdf_surface_t *surfa h = image->height; if (_cairo_fixed_integer_ceil(box.p1.x) < 0 || _cairo_fixed_integer_ceil(box.p1.y) < 0 || - _cairo_fixed_integer_floor(box.p2.y) > w || + _cairo_fixed_integer_floor(box.p2.x) > w || _cairo_fixed_integer_floor(box.p2.y) > h) { pad_image = _cairo_image_surface_create_with_content (image->base.content, -- cgit v1.2.3