mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-02 04:57:59 +02:00
[cairo-pdf-surface] Check status return after emit_meta_pattern().
Add the missing status propagation.
This commit is contained in:
parent
be7d1f0f8f
commit
66563eddd8
1 changed files with 6 additions and 2 deletions
|
|
@ -1661,9 +1661,13 @@ _cairo_pdf_surface_emit_surface_pattern (cairo_pdf_surface_t *surface,
|
|||
status = _cairo_pdf_surface_emit_meta_surface (surface,
|
||||
meta_surface,
|
||||
&pattern_resource);
|
||||
if (status)
|
||||
return status;
|
||||
|
||||
status = _cairo_surface_get_extents (meta_surface, &pattern_extents);
|
||||
if (status)
|
||||
return status;
|
||||
|
||||
pattern_width = pattern_extents.width;
|
||||
pattern_height = pattern_extents.height;
|
||||
} else {
|
||||
|
|
@ -1672,9 +1676,9 @@ _cairo_pdf_surface_emit_surface_pattern (cairo_pdf_surface_t *surface,
|
|||
&pattern_resource,
|
||||
&pattern_width,
|
||||
&pattern_height);
|
||||
if (status)
|
||||
return status;
|
||||
}
|
||||
if (status)
|
||||
return status;
|
||||
|
||||
status = _cairo_surface_get_extents (&surface->base, &surface_extents);
|
||||
if (status)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue