mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-08 16:08:20 +02:00
PDF: Fix regression caused by 1ae5a419
Bug 24240 acroread prints error message when printing
This commit is contained in:
parent
91a4f59f13
commit
3a83bc8617
1 changed files with 8 additions and 4 deletions
|
|
@ -5335,6 +5335,10 @@ _cairo_pdf_surface_paint (void *abstract_surface,
|
|||
if (unlikely (status))
|
||||
return status;
|
||||
|
||||
status = _cairo_pdf_operators_flush (&surface->pdf_operators);
|
||||
if (unlikely (status))
|
||||
return status;
|
||||
|
||||
if (source->type == CAIRO_PATTERN_TYPE_SURFACE &&
|
||||
source->extend == CAIRO_EXTEND_NONE) {
|
||||
|
||||
|
|
@ -5389,10 +5393,6 @@ _cairo_pdf_surface_paint (void *abstract_surface,
|
|||
if (unlikely (status))
|
||||
return status;
|
||||
|
||||
status = _cairo_pdf_operators_flush (&surface->pdf_operators);
|
||||
if (unlikely (status))
|
||||
return status;
|
||||
|
||||
_cairo_output_stream_printf (surface->output,
|
||||
"q /s%d gs /x%d Do Q\n",
|
||||
gstate_res.id,
|
||||
|
|
@ -5652,6 +5652,10 @@ _cairo_pdf_surface_fill (void *abstract_surface,
|
|||
if (source->type == CAIRO_PATTERN_TYPE_SURFACE &&
|
||||
source->extend == CAIRO_EXTEND_NONE) {
|
||||
|
||||
status = _cairo_pdf_operators_flush (&surface->pdf_operators);
|
||||
if (unlikely (status))
|
||||
return status;
|
||||
|
||||
_cairo_output_stream_printf (surface->output, "q\n");
|
||||
status = _cairo_pdf_operators_clip (&surface->pdf_operators,
|
||||
path,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue