[cairo-commit] src/cairo-pdf-surface.c
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu Oct 25 08:20:42 UTC 2018
src/cairo-pdf-surface.c | 5 +++++
1 file changed, 5 insertions(+)
New commits:
commit 4c8813f0eaacc32c27126ad2296951a626300b89
Author: Adrian Johnson <ajohnson at redneon.com>
Date: Thu Oct 25 18:46:17 2018 +1030
pdf: add missing flush
Issue #342
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,
More information about the cairo-commit
mailing list