[cairo-commit] src/cairo-pdf-operators.c
Adrian Johnson
ajohnson at kemper.freedesktop.org
Sat Apr 10 06:57:27 PDT 2010
src/cairo-pdf-operators.c | 6 ++++++
1 file changed, 6 insertions(+)
New commits:
commit 42b5cac7668625c9761113ff72b47af5cfd10377
Author: Adrian Johnson <ajohnson at redneon.com>
Date: Wed Apr 7 19:10:15 2010 +0930
PDF-operators: ensure text operations flushed before emitting clip
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 ");
More information about the cairo-commit
mailing list