diff options
author | Søren Sandmann Pedersen <ssp@redhat.com> | 2012-10-06 22:26:04 -0400 |
---|---|---|
committer | Søren Sandmann Pedersen <ssp@redhat.com> | 2013-05-27 09:19:21 -0400 |
commit | 5e2d340ed1890dfb4e8e8aecb4e252cc83425849 (patch) | |
tree | f54748c7d5f6a75848ef12279d9e8665d69878c0 | |
parent | 781acebaed6ca0a444c8e9c05128464428bf40c0 (diff) |
Check _cairo_clip_is_region()
cairo_clip_*get*_region() will return a region that is a conservative
estimate. Unless _cairo_clip_is_region() returns TRUE we can't be sure
that it is an exact match.
-rw-r--r-- | src/cairo-pixman-surface.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cairo-pixman-surface.c b/src/cairo-pixman-surface.c index 602c6384..e87e351c 100644 --- a/src/cairo-pixman-surface.c +++ b/src/cairo-pixman-surface.c @@ -890,7 +890,7 @@ create_clip_image (const cairo_clip_t *clip, int width, int height) if (!clip) return fimage_new_white (width, height); - if ((region = _cairo_clip_get_region (clip))) + if (_cairo_clip_is_region (clip) && (region = _cairo_clip_get_region (clip))) return fimage_new_region (width, height, ®ion->rgn); /* First add the boxes */ |