mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 09:58:12 +02:00
[cairo-pdf-surface] Minor code tidy.
Remove code duplication.
This commit is contained in:
parent
d7ce0582f1
commit
d0cc1d9291
1 changed files with 2 additions and 4 deletions
|
|
@ -1072,17 +1072,15 @@ _cairo_pdf_surface_open_content_stream (cairo_pdf_surface_t *surface,
|
|||
surface->width,
|
||||
surface->height,
|
||||
surface->content_resources.id);
|
||||
if (status)
|
||||
return status;
|
||||
} else {
|
||||
status =
|
||||
_cairo_pdf_surface_open_stream (surface,
|
||||
NULL,
|
||||
surface->compress_content,
|
||||
NULL);
|
||||
if (status)
|
||||
return status;
|
||||
}
|
||||
if (status)
|
||||
return status;
|
||||
|
||||
surface->content = surface->pdf_stream.self;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue