From 4ac130a86ea92624713d1f20bcc57b2ea55dc3ec Mon Sep 17 00:00:00 2001 From: ellson Date: Sat, 26 Feb 2005 04:00:33 +0000 Subject: [PATCH] increase pageBox size to include margins so that objects in margins overlap when paging --- lib/common/emit.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/common/emit.c b/lib/common/emit.c index 3d3ffab66..c6608f747 100644 --- a/lib/common/emit.c +++ b/lib/common/emit.c @@ -399,6 +399,11 @@ static void setup_page(GVC_t * gvc, graph_t * g) job->pageBox.UR.x = job->pageBox.LL.x + job->pageSize.x; job->pageBox.UR.y = job->pageBox.LL.y + job->pageSize.y; + /* increase pageBox to include margins so that overlapping nodes and edges + are drawn in the margins of each page */ + job->pageBox.LL = sub_pointfs(job->pageBox.LL,job->margin); + job->pageBox.UR = add_pointfs(job->pageBox.UR,job->margin); + /* establish pageOffset to be applied, in graph coordinates */ if (job->rotation == 0) { job->pageOffset.x = -(job->pagesArrayElem.x) * job->pageSize.x; -- 2.40.0