mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-06-19 21:48:37 +02:00
Fix _composite_trap_region to restore the original clip when done.
This commit is contained in:
parent
c81569d2f1
commit
5461f25df9
1 changed files with 4 additions and 0 deletions
|
|
@ -451,6 +451,10 @@ _composite_trap_region (cairo_clip_t *clip,
|
|||
extents->x, extents->y,
|
||||
extents->width, extents->height);
|
||||
|
||||
/* Restore the original clip if we modified it temporarily. */
|
||||
if (num_rects >1)
|
||||
_cairo_surface_set_clip (dst, clip);
|
||||
|
||||
if (clip_surface)
|
||||
_cairo_pattern_fini (&mask.base);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue