]> granicus.if.org Git - graphviz/commitdiff
fix UR coords of clip region to prevent bleed into margins when paging
authorellson <devnull@localhost>
Fri, 17 Aug 2007 17:37:20 +0000 (17:37 +0000)
committerellson <devnull@localhost>
Fri, 17 Aug 2007 17:37:20 +0000 (17:37 +0000)
plugin/core/gvrender_core_ps.c

index f8ffd93a1a2af4a5a0e8eb8a561cc79dbd3b2bcd..0a46091258e1d2b891f5b744bca10d707c2bc3be 100644 (file)
@@ -139,7 +139,7 @@ static void psgen_begin_page(GVJ_t * job)
            job->pagesArrayElem.x, job->pagesArrayElem.y, job->numPages);
     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);
+           pbr.LL.x, pbr.LL.y, pbr.UR.x-pbr.LL.x, pbr.UR.y-pbr.LL.y);
     core_printf(job, "%g %g set_scale %d rotate %g %g translate\n",
            job->scale.x, job->scale.y,
            job->rotation,