commit b43d81cfb55f58365263deca0eefd86503981a69 Author: Karl Tomlinson Date: Sat Jul 17 10:39:50 2010 +1200 clip: return empty clip from _cairo_clip_copy_rectangle_list when all_clipped https://bugs.freedesktop.org/show_bug.cgi?id=29122 diff --git a/src/cairo-clip.c b/src/cairo-clip.c index 12dc04d..f6173c6 100644 --- a/src/cairo-clip.c +++ b/src/cairo-clip.c @@ -1499,7 +1499,10 @@ _cairo_clip_copy_rectangle_list (cairo_clip_t *clip, cairo_gstate_t *gstate) int n_rects = 0; int i; - if (clip != NULL && clip->path != NULL) { + if (clip->all_clipped) + goto DONE; + + if (clip->path != NULL) { status = _cairo_clip_get_region (clip, ®ion); if (status == CAIRO_INT_STATUS_NOTHING_TO_DO) { goto DONE;