summaryrefslogtreecommitdiffstats
path: root/src/definition.cpp
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2019-09-30 16:57:25 (GMT)
committeralbert-github <albert.tests@gmail.com>2019-09-30 16:57:25 (GMT)
commitcbbd26b39cf63148b25d40498f0ab174e6094df7 (patch)
tree96167eaf9b5778b8a572e48284536d05f9f63319 /src/definition.cpp
parent4e21d19cf63b17aadb62905535262deb208a0c73 (diff)
downloadDoxygen-cbbd26b39cf63148b25d40498f0ab174e6094df7.zip
Doxygen-cbbd26b39cf63148b25d40498f0ab174e6094df7.tar.gz
Doxygen-cbbd26b39cf63148b25d40498f0ab174e6094df7.tar.bz2
Bug 335614 - HTML link incorrect when using tagfile
- See to it that when an extension is already present this extension is used and not a second extension is added - let the tag file know what the original extension was.
Diffstat (limited to 'src/definition.cpp')
-rw-r--r--src/definition.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/definition.cpp b/src/definition.cpp
index 3b5fea1..e972e6c 100644
--- a/src/definition.cpp
+++ b/src/definition.cpp
@@ -545,7 +545,7 @@ void DefinitionImpl::writeDocAnchorsToTagFile(FTextStream &tagFile) const
{
//printf("write an entry!\n");
if (definitionType()==TypeMember) tagFile << " ";
- tagFile << " <docanchor file=\"" << si->fileName << "\"";
+ tagFile << " <docanchor file=\"" << si->fileName << (hasExtension(si->fileName) ? "" : Doxygen::htmlFileExtension) << "\"";
if (!si->title.isEmpty())
{
tagFile << " title=\"" << convertToXML(si->title) << "\"";