diff options
author | Adrian Johnson <ajohnson@redneon.com> | 2010-04-07 19:10:15 +0930 |
---|---|---|
committer | Adrian Johnson <ajohnson@redneon.com> | 2010-04-10 22:15:01 +0930 |
commit | 42b5cac7668625c9761113ff72b47af5cfd10377 (patch) | |
tree | 79c589d76d2cc55b7b911d8a6977735d40c09f6e /src/cairo-pdf-operators.c | |
parent | c004800fae362ae907ef9d1f822d02c598572161 (diff) | |
download | cairo-42b5cac7668625c9761113ff72b47af5cfd10377.tar.gz |
PDF-operators: ensure text operations flushed before emitting clip
Diffstat (limited to 'src/cairo-pdf-operators.c')
-rw-r--r-- | 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 8c3849bcd..e688b0277 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 "); |