mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-01-04 16:50:19 +01:00
[cairo-svg-surface] Propagate the original error status.
Return the error status from the paginated surface instead of hard-coding a bare CAIRO_STATUS_NO_MEMORY.
This commit is contained in:
parent
ba392488cb
commit
48fd65cdb5
1 changed files with 1 additions and 1 deletions
|
|
@ -1032,7 +1032,7 @@ _cairo_svg_surface_emit_meta_surface (cairo_svg_document_t *document,
|
|||
meta->height_pixels);
|
||||
if (paginated_surface->status) {
|
||||
cairo_surface_destroy (&meta->base);
|
||||
return CAIRO_STATUS_NO_MEMORY;
|
||||
return paginated_surface->status;
|
||||
}
|
||||
|
||||
svg_surface = (cairo_svg_surface_t *) _cairo_paginated_surface_get_target (paginated_surface);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue