From a7a8588e93ddaef3d627a4256145dc0ff17a1889 Mon Sep 17 00:00:00 2001 From: erg Date: Fri, 10 Jun 2005 17:37:04 +0000 Subject: [PATCH] Avoid touching key attribute when cloning edge attributes --- lib/common/utils.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/common/utils.c b/lib/common/utils.c index 5ba6bd7e4..794a78101 100644 --- a/lib/common/utils.c +++ b/lib/common/utils.c @@ -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)); } -- 2.40.0