[cairo-commit] src/cairo-pdf-surface.c

Adrian Johnson ajohnson at kemper.freedesktop.org
Tue Feb 19 02:31:22 PST 2013


 src/cairo-pdf-surface.c |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

New commits:
commit 446a3dc5c0298e35b9a1e38460bc3804ab6e01ce
Author: Adrian Johnson <ajohnson at redneon.com>
Date:   Tue Feb 19 20:59:16 2013 +1030

    pdf: add missing 'endobj' to shading dict
    
    https://bugs.launchpad.net/ubuntu/+source/libcairo/+bug/1051939

diff --git a/src/cairo-pdf-surface.c b/src/cairo-pdf-surface.c
index eaa27f1..b2d51f7 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


More information about the cairo-commit mailing list