summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Johnson <ajohnson@redneon.com>2013-02-19 20:59:16 +1030
committerAdrian Johnson <ajohnson@redneon.com>2013-02-19 20:59:16 +1030
commit446a3dc5c0298e35b9a1e38460bc3804ab6e01ce (patch)
tree9b4fcf3363696eddbf42f9b2c3a17aabfd146831
parente7e1ac235ff94d184d88c8c206b81343822f6a4e (diff)
pdf: add missing 'endobj' to shading dict
https://bugs.launchpad.net/ubuntu/+source/libcairo/+bug/1051939
-rw-r--r--src/cairo-pdf-surface.c6
1 files 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