diff options
author | Adrian Johnson <ajohnson@redneon.com> | 2018-10-25 18:46:17 +1030 |
---|---|---|
committer | Adrian Johnson <ajohnson@redneon.com> | 2018-10-25 18:46:17 +1030 |
commit | 4c8813f0eaacc32c27126ad2296951a626300b89 (patch) | |
tree | c37137afdbcef871bf9ffeb02312af1861ba6ba2 | |
parent | 4db835c5b5eede6a348f50eb8f5b3977c32c8e9e (diff) |
pdf: add missing flush
Issue #342
-rw-r--r-- | src/cairo-pdf-surface.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cairo-pdf-surface.c b/src/cairo-pdf-surface.c index 7eb61aa1e..939b2d2d7 100644 --- a/src/cairo-pdf-surface.c +++ b/src/cairo-pdf-surface.c @@ -7711,6 +7711,11 @@ _cairo_pdf_surface_mask (void *abstract_surface, * and most common, case to handle. */ if (_cairo_pattern_is_constant_alpha (mask, &extents.bounded, &alpha) && _can_paint_pattern (source)) { + + status = _cairo_pdf_operators_flush (&surface->pdf_operators); + if (unlikely (status)) + goto cleanup; + _cairo_output_stream_printf (surface->output, "q\n"); status = _cairo_pdf_surface_paint_pattern (surface, op, |