]> granicus.if.org Git - graphviz/commitdiff
Use margin attribute to determine space left around cluster
authorEmden Gansner <erg@research.att.com>
Fri, 27 Jan 2012 15:58:09 +0000 (10:58 -0500)
committerEmden Gansner <erg@research.att.com>
Fri, 27 Jan 2012 15:58:09 +0000 (10:58 -0500)
lib/fdpgen/layout.c

index 9ca939990eb23fdb0b25e4d44dd0076654d71ae7..84c10d1498f9aa50f2d58b6811dc39b90bd2c983 100644 (file)
@@ -143,7 +143,7 @@ finalCC(graph_t * g, int c_cnt, graph_t ** cc, point * pts, graph_t * rg,
     if (isRoot || isEmpty)
        margin = 0;
     else
-       margin = CL_OFFSET;
+       margin = late_int (g, G_margin, CL_OFFSET, 0);
     pt.x = -bb.LL.x + margin;
     pt.y = -bb.LL.y + margin + GD_border(rg)[BOTTOM_IX].y;
     bb.LL.x = 0;