]> granicus.if.org Git - graphviz/commitdiff
fix page numbers on beginpage
authorellson <devnull@localhost>
Wed, 11 Oct 2006 16:11:05 +0000 (16:11 +0000)
committerellson <devnull@localhost>
Wed, 11 Oct 2006 16:11:05 +0000 (16:11 +0000)
plugin/core/gvrender_core_ps.c

index 1da76c244d4aa221267a0afd5a21e0f5f9d583c2..81141736e9c76cf4f9d0da143af5f4e5a76dc884 100644 (file)
@@ -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,