mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-08 05:38:02 +02:00
Fix page numbers in PostScript output to start at 1
This commit is contained in:
parent
6beababd47
commit
f17b347ab4
1 changed files with 2 additions and 1 deletions
|
|
@ -848,11 +848,12 @@ _cairo_ps_surface_finish (void *abstract_surface)
|
|||
static void
|
||||
_cairo_ps_surface_start_page (cairo_ps_surface_t *surface)
|
||||
{
|
||||
/* Increment before print so page numbers start at 1. */
|
||||
surface->num_pages++;
|
||||
_cairo_output_stream_printf (surface->stream,
|
||||
"%%%%Page: %d %d\n",
|
||||
surface->num_pages,
|
||||
surface->num_pages);
|
||||
surface->num_pages++;
|
||||
|
||||
_cairo_output_stream_printf (surface->stream,
|
||||
"gsave %f %f translate %f %f scale \n",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue