]> granicus.if.org Git - graphviz/commitdiff
Make sure gvpack updates xlabel positions
authorEmden R. Gansner <erg@research.att.com>
Mon, 9 Sep 2013 15:47:45 +0000 (11:47 -0400)
committerEmden R. Gansner <erg@research.att.com>
Mon, 9 Sep 2013 15:47:45 +0000 (11:47 -0400)
cmd/tools/gvpack.c

index 52f16ed96e6bfd74e153e4b8bf34fa2973a15810..151db9517a940c1fdd43098ab6d02cfe33b52366 100644 (file)
@@ -412,6 +412,7 @@ static void cloneEdge(Agedge_t * old, Agedge_t * new)
     ED_label(new) = ED_label(old);
     ED_head_label(new) = ED_head_label(old);
     ED_tail_label(new) = ED_tail_label(old);
+    ED_xlabel(new) = ED_xlabel(old);
 }
 
 /* cloneNode:
@@ -428,6 +429,7 @@ static void cloneNode(Agnode_t * old, Agnode_t * new)
     ND_rw(new) = ND_rw(old);
     ND_shape(new) = ND_shape(old);
     ND_shape_info(new) = ND_shape_info(old);
+    ND_xlabel(new) = ND_xlabel(old);
 }
 
 /* cloneCluster: