From: ellson Date: Wed, 11 Oct 2006 16:11:05 +0000 (+0000) Subject: fix page numbers on beginpage X-Git-Tag: LAST_LIBGRAPH~32^2~5834 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=10f58fcd1c5fb621012893ce1e8db86e87a387bb;p=graphviz fix page numbers on beginpage --- diff --git a/plugin/core/gvrender_core_ps.c b/plugin/core/gvrender_core_ps.c index 1da76c244..81141736e 100644 --- a/plugin/core/gvrender_core_ps.c +++ b/plugin/core/gvrender_core_ps.c @@ -119,10 +119,6 @@ static void psgen_begin_page(GVJ_t * job) { box pbr = job->pageBoundingBox; -// FIXME - point page = {0,0}; - int N_pages = 0; - core_printf(job, "%%%%Page: %d %d\n", job->common->viewNum + 1, job->common->viewNum + 1); if (job->common->show_boxes == NULL) @@ -136,7 +132,8 @@ static void psgen_begin_page(GVJ_t * job) if (job->common->show_boxes == NULL) core_printf(job, "gsave\n%d %d %d %d boxprim clip newpath\n", pbr.LL.x, pbr.LL.y, pbr.UR.x, pbr.UR.y); - core_printf(job, "%d %d %d beginpage\n", page.x, page.y, N_pages); + core_printf(job, "%d %d %d beginpage\n", + job->pagesArrayElem.x, job->pagesArrayElem.y, job->numPages); core_printf(job, "%g %g set_scale %d rotate %g %g translate\n", job->scale.x, job->scale.y, job->rotation,