clip: Propagate memfault from translating clip region

This commit is contained in:
Chris Wilson 2010-05-05 09:33:36 +01:00
parent 4bc54643f5
commit ad541a1ec6

View file

@ -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);