diff options
author | Adrian Johnson <ajohnson@redneon.com> | 2009-10-02 23:28:10 +0930 |
---|---|---|
committer | Adrian Johnson <ajohnson@redneon.com> | 2009-10-02 23:28:10 +0930 |
commit | 3a83bc8617dae3cc2bfea862f252338463871648 (patch) | |
tree | 63525acbe85cc08e4a57a49835b4bbeb4a21b1d7 | |
parent | 91a4f59f135dd42a28e14be55d1f08712c0c3097 (diff) |
PDF: Fix regression caused by 1ae5a419
Bug 24240 acroread prints error message when printing
-rw-r--r-- | src/cairo-pdf-surface.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/cairo-pdf-surface.c b/src/cairo-pdf-surface.c index ac78f589..896980a8 100644 --- a/src/cairo-pdf-surface.c +++ b/src/cairo-pdf-surface.c @@ -5335,6 +5335,10 @@ _cairo_pdf_surface_paint (void *abstract_surface, if (unlikely (status)) return status; + status = _cairo_pdf_operators_flush (&surface->pdf_operators); + if (unlikely (status)) + return status; + if (source->type == CAIRO_PATTERN_TYPE_SURFACE && source->extend == CAIRO_EXTEND_NONE) { @@ -5389,10 +5393,6 @@ _cairo_pdf_surface_paint (void *abstract_surface, if (unlikely (status)) return status; - status = _cairo_pdf_operators_flush (&surface->pdf_operators); - if (unlikely (status)) - return status; - _cairo_output_stream_printf (surface->output, "q /s%d gs /x%d Do Q\n", gstate_res.id, @@ -5652,6 +5652,10 @@ _cairo_pdf_surface_fill (void *abstract_surface, if (source->type == CAIRO_PATTERN_TYPE_SURFACE && source->extend == CAIRO_EXTEND_NONE) { + status = _cairo_pdf_operators_flush (&surface->pdf_operators); + if (unlikely (status)) + return status; + _cairo_output_stream_printf (surface->output, "q\n"); status = _cairo_pdf_operators_clip (&surface->pdf_operators, path, |