mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 05:18:01 +02:00
pdf: ensure ink extents is not larger than bounded extents
fixes mask test pdf output
This commit is contained in:
parent
fc011bfcb9
commit
a01cc10fe1
1 changed files with 4 additions and 2 deletions
|
|
@ -6145,13 +6145,15 @@ _cairo_pdf_surface_mask (void *abstract_surface,
|
|||
if (unlikely (status))
|
||||
goto cleanup;
|
||||
|
||||
if (! _cairo_rectangle_intersect (&extents.bounded, &extents.source))
|
||||
goto cleanup;
|
||||
|
||||
status = _cairo_pattern_get_ink_extents (mask, &extents.mask);
|
||||
if (unlikely (status))
|
||||
goto cleanup;
|
||||
|
||||
extents.bounded = extents.source;
|
||||
if (! _cairo_rectangle_intersect (&extents.bounded, &extents.mask))
|
||||
return CAIRO_STATUS_SUCCESS;
|
||||
goto cleanup;
|
||||
|
||||
status = _cairo_pdf_surface_set_clip (surface, &extents);
|
||||
if (unlikely (status))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue