]> granicus.if.org Git - graphviz/commitdiff
fix "-ve coordinates in %BoundingBox" problem
authorellson <devnull@localhost>
Wed, 1 Mar 2006 04:17:23 +0000 (04:17 +0000)
committerellson <devnull@localhost>
Wed, 1 Mar 2006 04:17:23 +0000 (04:17 +0000)
lib/common/emit.c

index 1dfe457efae318912f592fbb9c9a9fe7b2c97024..6204aa8d76af75fdaf164b825df9aa15c884f856 100644 (file)
@@ -244,24 +244,10 @@ static void init_job_pagination(GVJ_t * job, graph_t *g)
 
     /* determine page box including centering */
     if (GD_drawing(g)->centered) {
-#if 1
-       /* FIXME - this code seems odd since margin, pageSize, and imageSize
-        * should have all been rotated already */
-       if (GD_drawing(g)->landscape) {
-           if (pageSize.x > imageSize.x)
-               margin.x += (pageSize.x - imageSize.y) / 2;
-           if (pageSize.y > imageSize.y)
-               margin.y += (pageSize.y - imageSize.x) / 2;
-       }
-       else {
-#endif
-           if (pageSize.x > imageSize.x)
-               margin.x += (pageSize.x - imageSize.x) / 2;
-           if (pageSize.y > imageSize.y)
-               margin.y += (pageSize.y - imageSize.y) / 2;
-#if 1
-       }
-#endif
+       if (pageSize.x > imageSize.x)
+           margin.x += (pageSize.x - imageSize.x) / 2;
+       if (pageSize.y > imageSize.y)
+           margin.y += (pageSize.y - imageSize.y) / 2;
     }
 
     job->boundingBox.LL.x = margin.x;