clip: Don't reduce all-clip to no-clip.

This commit is contained in:
Chris Wilson 2010-03-24 11:21:36 +00:00
parent b12114f296
commit b3e0393161

View file

@ -190,7 +190,8 @@ _cairo_clip_init_copy (cairo_clip_t *clip, cairo_clip_t *other)
clip->all_clipped = other->all_clipped;
if (other->path == NULL) {
clip->path = NULL;
clip = NULL;
if (! clip->all_clipped)
clip = NULL;
} else {
clip->path = _cairo_clip_path_reference (other->path);
}