gfx/cairo/fix-clip-test.patch

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/gfx/cairo/fix-clip-test.patch	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,15 @@
     1.4 +Fix a clip test to test the right coordinate.
     1.5 +
     1.6 +Fixed upstream by 498c10032ea3f8631a928cd7df96766f2c8ddca4
     1.7 +diff --git a/gfx/cairo/cairo/src/cairo-clip.c b/gfx/cairo/cairo/src/cairo-clip.c
     1.8 +--- a/gfx/cairo/cairo/src/cairo-clip.c
     1.9 ++++ b/gfx/cairo/cairo/src/cairo-clip.c
    1.10 +@@ -408,7 +408,7 @@ _cairo_clip_rectangle (cairo_clip_t     
    1.11 +     /* if a smaller clip has already been set, ignore the new path */
    1.12 +     if (clip->path != NULL) {
    1.13 + 	if (rectangle->x <= clip->path->extents.x &&
    1.14 +-	    rectangle->y <= clip->path->extents.x &&
    1.15 ++	    rectangle->y <= clip->path->extents.y &&
    1.16 + 	    rectangle->x + rectangle->width >= clip->path->extents.x + clip->path->extents.width &&
    1.17 + 	    rectangle->y + rectangle->height >= clip->path->extents.y + clip->path->extents.height)
    1.18 + 	{

mercurial