mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-01-03 12:50:20 +01:00
Fix PDF regression with multipage documents
This commit is contained in:
parent
1a6b62e599
commit
a60beb2eef
1 changed files with 7 additions and 0 deletions
|
|
@ -218,6 +218,9 @@ typedef struct _cairo_pdf_group_element {
|
|||
static cairo_pdf_resource_t
|
||||
_cairo_pdf_surface_new_object (cairo_pdf_surface_t *surface);
|
||||
|
||||
static void
|
||||
_cairo_pdf_group_element_array_finish (cairo_array_t *array);
|
||||
|
||||
static void
|
||||
_cairo_pdf_surface_clear (cairo_pdf_surface_t *surface);
|
||||
|
||||
|
|
@ -524,6 +527,10 @@ static void
|
|||
_cairo_pdf_surface_clear (cairo_pdf_surface_t *surface)
|
||||
{
|
||||
_cairo_array_truncate (&surface->streams, 0);
|
||||
_cairo_pdf_group_element_array_finish (&surface->content_group);
|
||||
_cairo_pdf_group_element_array_finish (&surface->knockout_group);
|
||||
_cairo_array_truncate (&surface->content_group, 0);
|
||||
_cairo_array_truncate (&surface->knockout_group, 0);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue