From 446a3dc5c0298e35b9a1e38460bc3804ab6e01ce Mon Sep 17 00:00:00 2001 From: Adrian Johnson Date: Tue, 19 Feb 2013 20:59:16 +1030 Subject: pdf: add missing 'endobj' to shading dict https://bugs.launchpad.net/ubuntu/+source/libcairo/+bug/1051939 --- src/cairo-pdf-surface.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/cairo-pdf-surface.c b/src/cairo-pdf-surface.c index eaa27f14..b2d51f73 100644 --- a/src/cairo-pdf-surface.c +++ b/src/cairo-pdf-surface.c @@ -3562,9 +3562,11 @@ _cairo_pdf_surface_output_gradient (cairo_pdf_surface_t *surface, if (!pdf_pattern->is_shading) { _cairo_output_stream_printf (surface->output, - ">>\n" - "endobj\n"); + ">>\n"); } + + _cairo_output_stream_printf (surface->output, + "endobj\n"); } static cairo_status_t -- cgit v1.2.3