mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-01-28 04:50:27 +01:00
image: Replace assert with error return
It is possible to encounter an allocation failure here since we may have tweaked the clip since the last evaluation of the clip region.
This commit is contained in:
parent
2c68fcace4
commit
08b9984da9
1 changed files with 2 additions and 1 deletions
|
|
@ -2191,8 +2191,9 @@ _clip_and_composite (cairo_image_surface_t *dst,
|
|||
status = _cairo_clip_get_region (clip, &clip_region);
|
||||
if (unlikely (status == CAIRO_INT_STATUS_NOTHING_TO_DO))
|
||||
return CAIRO_STATUS_SUCCESS;
|
||||
if (unlikely (_cairo_status_is_error (status)))
|
||||
return status;
|
||||
|
||||
assert (! _cairo_status_is_error (status));
|
||||
need_clip_surface = status == CAIRO_INT_STATUS_UNSUPPORTED;
|
||||
|
||||
if (clip_region != NULL) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue