mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-04 01:17:59 +02:00
PDF: Ensure operator is selected before painting surface
This commit is contained in:
parent
a402bdbd32
commit
aca1dff259
1 changed files with 8 additions and 8 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue