]> granicus.if.org Git - graphviz/commitdiff
- fix 1 point extra margin UR.
authorellson <devnull@localhost>
Tue, 22 Nov 2005 01:53:30 +0000 (01:53 +0000)
committerellson <devnull@localhost>
Tue, 22 Nov 2005 01:53:30 +0000 (01:53 +0000)
- fix -Gmargin in -Tps (defaults to 5 points)

lib/common/psgen.c

index 64bc5af2b3f58dc4d95ca5db6cf8c511238a1c10..590da193ed9c9b280dcf3076e1561df79aafaf53 100644 (file)
@@ -112,6 +112,7 @@ static void ps_begin_graph(GVC_t * gvc, graph_t * g, box bb, point pb)
      * at PB.LL by the B & L margin width.
      * The PostScript BoundingBox also needs margin T & R */
     sz = add_points(PB.LL, PB.UR);
+    sz.x--; sz.y--;   /* -1  just for kicks */
     if (onetime) {
        if (Show_boxes == NULL)
            fprintf(Output_file, "%%%%BoundingBox: %d %d %d %d\n",
@@ -159,11 +160,12 @@ fprintf(stderr,"offset = %d,%d\n", offset.x, offset.y);
 #endif
 
     sz = add_points(PB.LL, PB.UR);
+    sz.x--; sz.y--;   /* -1  just for kicks */
     Cur_page++;
     fprintf(Output_file, "%%%%Page: %d %d\n", Cur_page, Cur_page);
     if (Show_boxes == NULL)
        fprintf(Output_file, "%%%%PageBoundingBox: %d %d %d %d\n",
-           PB.LL.x, PB.LL.y, PB.UR.x, PB.UR.y);
+           0, 0, sz.x, sz.y);
     fprintf(Output_file, "%%%%PageOrientation: %s\n",
            (rot ? "Landscape" : "Portrait"));
     if (Output_lang == PDF)