]> granicus.if.org Git - graphviz/commitdiff
fix portrait paging
authorellson <devnull@localhost>
Sat, 26 Feb 2005 03:15:26 +0000 (03:15 +0000)
committerellson <devnull@localhost>
Sat, 26 Feb 2005 03:15:26 +0000 (03:15 +0000)
lib/common/emit.c

index 479fc6ea0343e54987ec7a4a1978834df7adc5cc..f7b3e2c3d467b69161c96656c33a8c3279c218cf 100644 (file)
@@ -401,8 +401,8 @@ static void setup_page(GVC_t * gvc, graph_t * g)
 
     /* establish pageOffset to be applied, in graph coordinates */
     if (job->rotation == 0) {
-       job->pageOffset.x =  (job->pagesArrayElem.x)     * job->pageSize.x;
-       job->pageOffset.y =  (job->pagesArrayElem.y)     * job->pageSize.y;
+       job->pageOffset.x =  -(job->pagesArrayElem.x)    * job->pageSize.x;
+       job->pageOffset.y =  -(job->pagesArrayElem.y)    * job->pageSize.y;
     }
     else {
        job->pageOffset.x =  (job->pagesArrayElem.y + 1) * job->pageSize.y;