mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 02:58:02 +02:00
Add a call to _cairo_ps_surface_start_page in _cairo_ps_surface_intersect_clip_path.
If clipping occurs before any drawing, then we still need to issue a start page call. Otherwise, the clip ends up being inverted since the scaling transformation that puts PostScript into a cairo-oriented coordinate system only happens in start_page.
This commit is contained in:
parent
341d61cda0
commit
6d5627ca2a
1 changed files with 3 additions and 0 deletions
|
|
@ -1095,6 +1095,9 @@ _cairo_ps_surface_intersect_clip_path (void *abstract_surface,
|
|||
if (surface->paginated_mode == CAIRO_PAGINATED_MODE_ANALYZE)
|
||||
return CAIRO_STATUS_SUCCESS;
|
||||
|
||||
if (surface->need_start_page)
|
||||
_cairo_ps_surface_start_page (surface);
|
||||
|
||||
_cairo_output_stream_printf (stream,
|
||||
"%% _cairo_ps_surface_intersect_clip_path\n");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue