mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 15:48:00 +02:00
clip: Propagate memfault from translating clip region
This commit is contained in:
parent
4bc54643f5
commit
ad541a1ec6
1 changed files with 6 additions and 0 deletions
|
|
@ -443,6 +443,12 @@ _cairo_clip_path_reapply_clip_path_translate (cairo_clip_t *clip,
|
|||
clip_path->flags = other_path->flags;
|
||||
if (other_path->region != NULL) {
|
||||
clip_path->region = cairo_region_copy (other_path->region);
|
||||
if (unlikely (status = clip_path->region->status)) {
|
||||
clip->path = clip->path->prev;
|
||||
_cairo_clip_path_destroy (clip_path);
|
||||
return status;
|
||||
}
|
||||
|
||||
cairo_region_translate (clip_path->region, tx, ty);
|
||||
}
|
||||
clip_path->surface = cairo_surface_reference (other_path->surface);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue