From 7e4c17029d9abe34ac591fde0d33905c86d97d48 Mon Sep 17 00:00:00 2001 From: Adrian Johnson Date: Wed, 7 Apr 2010 19:10:15 +0930 Subject: [PATCH] PDF-operators: ensure text operations flushed before emitting clip --- src/cairo-pdf-operators.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/src/cairo-pdf-operators.c b/src/cairo-pdf-operators.c index 8c3849b..e688b02 100644 --- a/src/cairo-pdf-operators.c +++ b/src/cairo-pdf-operators.c @@ -481,6 +481,12 @@ _cairo_pdf_operators_clip (cairo_pdf_operators_t *pdf_operators, const char *pdf_operator; cairo_status_t status; + if (pdf_operators->in_text_object) { + status = _cairo_pdf_operators_end_text (pdf_operators); + if (unlikely (status)) + return status; + } + if (! path->has_current_point) { /* construct an empty path */ _cairo_output_stream_printf (pdf_operators->stream, "0 0 m "); -- 1.6.3.3