summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2021-03-04 21:04:13 (GMT)
committerGitHub <noreply@github.com>2021-03-04 21:04:13 (GMT)
commite98a4e069bdcd545132961116e42607fb59176ad (patch)
tree1e0d731e8a5747c9fb8add93814a3849a3fc8801
parent2128b9df599a7025d824b2f240ba78358f47d050 (diff)
parentc39a117161c7977fa6b27be3f1e5696f2f6f35e9 (diff)
downloadDoxygen-e98a4e069bdcd545132961116e42607fb59176ad.zip
Doxygen-e98a4e069bdcd545132961116e42607fb59176ad.tar.gz
Doxygen-e98a4e069bdcd545132961116e42607fb59176ad.tar.bz2
Merge pull request #8410 from albert-github/feature/bug_chm
Problems generating chm documentation
-rw-r--r--src/htmlhelp.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/htmlhelp.cpp b/src/htmlhelp.cpp
index 3d88e4f..d34c8d3 100644
--- a/src/htmlhelp.cpp
+++ b/src/htmlhelp.cpp
@@ -161,7 +161,15 @@ void HtmlHelpIndex::addItem(const char *level1,const char *level2,
{
return;
}
- std::string key_anchor = key+anchor;
+ std::string key_anchor;
+ if (anchor)
+ {
+ key_anchor = key+anchor;
+ }
+ else
+ {
+ key_anchor = key;
+ }
m_map.add(key_anchor.c_str(),key.c_str(),url,anchor,hasLink,reversed);
}