]> granicus.if.org Git - graphviz/commit
check internal map for IDs prior to creating one from a string
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 1 Aug 2020 19:19:27 +0000 (12:19 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 8 Aug 2020 01:48:49 +0000 (18:48 -0700)
commit4f283dd1c02a6a4999b53ad2fcbf2264a7074a8b
treed249b40017c26495b24ed45048ae7e860414f64c
parent621cb79d6221726cbe2b367fc469e11f2b8b8c33
check internal map for IDs prior to creating one from a string

This has no effect currently because the case that preceded this check was for
non-local names, that are not inserted into the internal map anyway. However, an
upcoming change will alter this behavior, so we want to make sure that if a name
already has a known ID it is found first. Related to #1767.
lib/cgraph/id.c