mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-01-07 14:50:28 +01:00
image: Propagate error instead of asserting.
Apparently we can get to this point without evaluating the clip surface, so return the error status rather than assert.
This commit is contained in:
parent
5e95c62bbb
commit
fb6caf08ae
1 changed files with 2 additions and 1 deletions
|
|
@ -1632,7 +1632,8 @@ _cairo_image_surface_fixup_unbounded (cairo_image_surface_t *dst,
|
|||
int clip_x, clip_y;
|
||||
|
||||
clip_surface = _cairo_clip_get_surface (clip, &dst->base, &clip_x, &clip_y);
|
||||
assert (clip_surface->status == CAIRO_STATUS_SUCCESS);
|
||||
if (unlikely (clip_surface->status))
|
||||
return clip_surface->status;
|
||||
|
||||
mask = ((cairo_image_surface_t *) clip_surface)->pixman_image;
|
||||
mask_x = -clip_x;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue