diff options
Diffstat (limited to 'src/util.cpp')
-rw-r--r-- | src/util.cpp | 6 |
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()) ); |