From: ellson Date: Tue, 22 Nov 2005 01:53:30 +0000 (+0000) Subject: - fix 1 point extra margin UR. X-Git-Tag: LAST_LIBGRAPH~32^2~6949 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=34895e75fccdaa7142dabd1fc06dbceb5efd591c;p=graphviz - fix 1 point extra margin UR. - fix -Gmargin in -Tps (defaults to 5 points) --- diff --git a/lib/common/psgen.c b/lib/common/psgen.c index 64bc5af2b..590da193e 100644 --- a/lib/common/psgen.c +++ b/lib/common/psgen.c @@ -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)