From 85b09cf13179b0e5ab8bddb4857e3d2af0a39a31 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sat, 1 Aug 2020 11:56:23 -0700 Subject: [PATCH] add non-local names to Cgraph internal map as well as local names This allows the internal name->id map to track *all* names. Related to #1767. --- lib/cgraph/id.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/cgraph/id.c b/lib/cgraph/id.c index 93dc829c0..f64e58ebc 100644 --- a/lib/cgraph/id.c +++ b/lib/cgraph/id.c @@ -109,8 +109,10 @@ int agmapnametoid(Agraph_t * g, int objtype, char *str, if (str && (str[0] != LOCALNAMEPREFIX)) { rv = AGDISC(g, id)->map(AGCLOS(g, id), objtype, str, result, createflag); - if (rv) + if (rv) { + aginternalmapinsert(g, objtype, str, *result); return rv; + } } if (createflag) { -- 2.40.0