summaryrefslogtreecommitdiffstats
path: root/src/util.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2021-06-13 08:58:42 (GMT)
committerGitHub <noreply@github.com>2021-06-13 08:58:42 (GMT)
commit64c7301d7ffa1c6eef5a1f9a4a58268d2b735da4 (patch)
treeedd544203ef32da2ea670358697cba1746c9fee7 /src/util.cpp
parent8516c0a1a979aff077ad029acd9a18271086542f (diff)
parent0ee3c373963c91bc5cbaf220764483a6f05d977e (diff)
downloadDoxygen-64c7301d7ffa1c6eef5a1f9a4a58268d2b735da4.zip
Doxygen-64c7301d7ffa1c6eef5a1f9a4a58268d2b735da4.tar.gz
Doxygen-64c7301d7ffa1c6eef5a1f9a4a58268d2b735da4.tar.bz2
Merge pull request #8589 from albert-github/feature/bug_cite
Problem with cite command (tests 12)
Diffstat (limited to 'src/util.cpp')
-rw-r--r--src/util.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/util.cpp b/src/util.cpp
index 7c469ab..75a86a1 100644
--- a/src/util.cpp
+++ b/src/util.cpp
@@ -5205,6 +5205,12 @@ QCString rtfFormatBmkStr(const QCString &name)
// substitute a short arbitrary string for the name
// supplied, and keep track of the correspondence
// between names and strings.
+ auto it = g_tagMap.find(name.str());
+ if (it!=g_tagMap.end()) // already known
+ {
+ return QCString(it->second);
+ }
+
QCString tag = g_nextTag;
auto result = g_tagMap.insert( std::make_pair(name.str(), g_nextTag.str()) );