From: ellson Date: Fri, 17 Aug 2007 17:37:20 +0000 (+0000) Subject: fix UR coords of clip region to prevent bleed into margins when paging X-Git-Tag: LAST_LIBGRAPH~32^2~5391 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=92082194b1fc1986c508988dc0812f0afe8d69eb;p=graphviz fix UR coords of clip region to prevent bleed into margins when paging --- diff --git a/plugin/core/gvrender_core_ps.c b/plugin/core/gvrender_core_ps.c index f8ffd93a1..0a4609125 100644 --- a/plugin/core/gvrender_core_ps.c +++ b/plugin/core/gvrender_core_ps.c @@ -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,