mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-15 18:28:05 +02:00
PDF: Fix bug when when embedding surfaces
This commit is contained in:
parent
feaf38d0cd
commit
26d568a9ad
1 changed files with 2 additions and 1 deletions
|
|
@ -4886,7 +4886,8 @@ _cairo_pdf_surface_write_patterns_and_smask_groups (cairo_pdf_surface_t *surface
|
|||
group_index = 0;
|
||||
surface_index = 0;
|
||||
while ((pattern_index < _cairo_array_num_elements (&surface->page_patterns)) ||
|
||||
(group_index < _cairo_array_num_elements (&surface->smask_groups)))
|
||||
(group_index < _cairo_array_num_elements (&surface->smask_groups)) ||
|
||||
(surface_index < _cairo_array_num_elements (&surface->page_surfaces)))
|
||||
{
|
||||
for (; group_index < _cairo_array_num_elements (&surface->smask_groups); group_index++) {
|
||||
_cairo_array_copy_element (&surface->smask_groups, group_index, &group);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue