]> granicus.if.org Git - graphviz/commitdiff
Fix previous fix - make sure statement is in the right place
authorEmden Gansner <erg@verus.research.att.com>
Mon, 9 Sep 2013 15:41:54 +0000 (11:41 -0400)
committerEmden Gansner <erg@verus.research.att.com>
Mon, 9 Sep 2013 15:41:54 +0000 (11:41 -0400)
lib/pack/pack.c

index 6cf7e43b69da97b1dae5ee5da4137eb48ad74725..ba369c9723cf6ef77dea7cb40bbe79c3fbc0f003 100644 (file)
@@ -1109,13 +1109,14 @@ 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;
            ND_pos(n)[1] += fy;
            MOVEPT(ND_coord(n));
+           if (ND_xlabel(n)) {
+               MOVEPT(ND_xlabel(n)->pos);
+            }
            if (doSplines) {
                for (e = agfstout(eg, n); e; e = agnxtout(eg, e))
                    shiftEdge(e, dx, dy);