summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Johnson <ajohnson@redneon.com>2009-08-31 22:28:26 +0930
committerAdrian Johnson <ajohnson@redneon.com>2009-08-31 23:13:32 +0930
commitaca1dff25967940c36caee26977512484f1720ac (patch)
tree78e60e975b8ce1ac5793932618e2a85b2a0c73df
parenta402bdbd32d3ffe4b564318e6dd83831328257b1 (diff)
PDF: Ensure operator is selected before painting surface
-rw-r--r--src/cairo-pdf-surface.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/cairo-pdf-surface.c b/src/cairo-pdf-surface.c
index 2b8dceba..6fa61334 100644
--- a/src/cairo-pdf-surface.c
+++ b/src/cairo-pdf-surface.c
@@ -5329,6 +5329,10 @@ _cairo_pdf_surface_paint (void *abstract_surface,
if (unlikely (status))
return status;
+ status = _cairo_pdf_surface_select_operator (surface, op);
+ if (unlikely (status))
+ return status;
+
if (source->type == CAIRO_PATTERN_TYPE_SURFACE &&
source->extend == CAIRO_EXTEND_NONE) {
@@ -5351,10 +5355,6 @@ _cairo_pdf_surface_paint (void *abstract_surface,
if (unlikely (status))
return status;
- status = _cairo_pdf_surface_select_operator (surface, op);
- if (unlikely (status))
- return status;
-
if (gstate_res.id != 0) {
group = _cairo_pdf_surface_create_smask_group (surface);
if (unlikely (group == NULL))
@@ -5627,6 +5627,10 @@ _cairo_pdf_surface_fill (void *abstract_surface,
if (unlikely (status))
return status;
+ status = _cairo_pdf_surface_select_operator (surface, op);
+ if (unlikely (status))
+ return status;
+
if (source->type == CAIRO_PATTERN_TYPE_SURFACE &&
source->extend == CAIRO_EXTEND_NONE) {
@@ -5655,10 +5659,6 @@ _cairo_pdf_surface_fill (void *abstract_surface,
if (unlikely (status))
return status;
- status = _cairo_pdf_surface_select_operator (surface, op);
- if (unlikely (status))
- return status;
-
if (gstate_res.id != 0) {
group = _cairo_pdf_surface_create_smask_group (surface);
if (unlikely (group == NULL))