From: erg Date: Sat, 23 Dec 2006 00:10:55 +0000 (+0000) Subject: Fix bug 1057; also fix bug where the user can't specify a different X-Git-Tag: LAST_LIBGRAPH~32^2~5736 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e85852f253ca9b9c82eb351543c7e3605adb9a73;p=graphviz Fix bug 1057; also fix bug where the user can't specify a different page size and use centering; still not sure that pageOffset is computed correctly, but it is only used now in hpglgen. --- diff --git a/lib/common/emit.c b/lib/common/emit.c index 71fd16e6e..7c15cd2e3 100644 --- a/lib/common/emit.c +++ b/lib/common/emit.c @@ -586,10 +586,6 @@ static void init_job_pagination(GVJ_t * job, graph_t *g) pageSize.x = gvc->pageSize.x - 2 * margin.x; pageSize.y = gvc->pageSize.y - 2 * margin.y; - /* we don't want graph page to exceed its bounding box */ - pageSize.x = MIN(pageSize.x, imageSize.x); - pageSize.y = MIN(pageSize.y, imageSize.y); - if (pageSize.x < EPSILON) job->pagesArraySize.x = 1; else { @@ -618,6 +614,8 @@ static void init_job_pagination(GVJ_t * job, graph_t *g) pageSize.y = job->render.features->default_pagesize.y - 2*margin.y; if (pageSize.y < 0.) pageSize.y = 0.; + if (job->rotation) + pageSize = exch_xyf(pageSize); } else pageSize.x = pageSize.y = 0.;