]> granicus.if.org Git - graphviz/commitdiff
Avoid touching key attribute when cloning edge attributes
authorerg <devnull@localhost>
Fri, 10 Jun 2005 17:37:04 +0000 (17:37 +0000)
committererg <devnull@localhost>
Fri, 10 Jun 2005 17:37:04 +0000 (17:37 +0000)
lib/common/utils.c

index 5ba6bd7e4137318b08edaa653f34c5969ba1814b..794a78101afadd5bc319df105785fccbbdb1592a 100644 (file)
@@ -1491,6 +1491,7 @@ static edge_t *cloneEdge(edge_t * e, node_t * ct, node_t * ch)
     edge_t *ce = agedge(g, ct, ch);
 
     while ((sym = *list++)) {
+       if (sym->index == 0) continue;
        agxset(ce, sym->index, agxget(e, sym->index));
     }