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:
Carl Worth 2006-04-05 17:00:13 -07:00
parent 341d61cda0
commit 6d5627ca2a

View file

@ -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");