mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 04:08:13 +02:00
[cairo-pdf-surface] Do not mask error during cleanup.
Be careful to preserve the original error status whilst on the common cleanup path for _cairo_pdf_surface_emit_meta_surface().
This commit is contained in:
parent
3580b99a8f
commit
94db91b65e
1 changed files with 4 additions and 4 deletions
|
|
@ -1501,7 +1501,7 @@ _cairo_pdf_surface_emit_meta_surface (cairo_pdf_surface_t *surface,
|
|||
cairo_paginated_mode_t old_paginated_mode;
|
||||
cairo_clip_t *old_clip;
|
||||
cairo_rectangle_int_t meta_extents;
|
||||
cairo_status_t status;
|
||||
cairo_status_t status, status2;
|
||||
int alpha = 0;
|
||||
|
||||
status = _cairo_surface_get_extents (meta_surface, &meta_extents);
|
||||
|
|
@ -1555,9 +1555,9 @@ _cairo_pdf_surface_emit_meta_surface (cairo_pdf_surface_t *surface,
|
|||
surface->height = old_height;
|
||||
surface->paginated_mode = old_paginated_mode;
|
||||
surface->cairo_to_pdf = old_cairo_to_pdf;
|
||||
status = _cairo_surface_set_clip (&surface->base, old_clip);
|
||||
if (status)
|
||||
return status;
|
||||
status2 = _cairo_surface_set_clip (&surface->base, old_clip);
|
||||
if (status == CAIRO_STATUS_SUCCESS)
|
||||
status = status2;
|
||||
|
||||
_cairo_pdf_operators_set_cairo_to_pdf_matrix (&surface->pdf_operators,
|
||||
&surface->cairo_to_pdf);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue