From: Emden R. Gansner Date: Mon, 9 Sep 2013 15:16:45 +0000 (-0400) Subject: Fix pack to update xlabel positions X-Git-Tag: LAST_LIBGRAPH~32^2~18 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f18cecda74e56b38816dff16a6b27a579235aa86;p=graphviz Fix pack to update xlabel positions --- diff --git a/lib/pack/pack.c b/lib/pack/pack.c index 2f43d96fb..6cf7e43b6 100644 --- a/lib/pack/pack.c +++ b/lib/pack/pack.c @@ -1014,6 +1014,8 @@ static void shiftEdge(Agedge_t * e, int dx, int dy) if (ED_label(e)) MOVEPT(ED_label(e)->pos); + if (ED_xlabel(e)) + MOVEPT(ED_xlabel(e)->pos); if (ED_head_label(e)) MOVEPT(ED_head_label(e)->pos); if (ED_tail_label(e)) @@ -1107,6 +1109,8 @@ shiftGraphs(int ng, Agraph_t ** gs, point * pp, Agraph_t * root, dy = p.y; fx = PS2INCH(dx); fy = PS2INCH(dy); + if (ND_label(n)) + MOVEPT(ND_label(n)->pos); for (n = agfstnode(g); n; n = agnxtnode(g, n)) { ND_pos(n)[0] += fx;