summaryrefslogtreecommitdiffstats
path: root/src/tagreader.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2014-08-14 17:29:15 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2014-08-14 17:29:15 (GMT)
commit7d9d4320f5d183c4e1ebc87a316589c36f0afeed (patch)
tree44b23d41b9db4001a8fc2d9f1782cbdc15893abb /src/tagreader.cpp
parent14f88af12bae98859eafe605ddb5f54029e44076 (diff)
downloadDoxygen-7d9d4320f5d183c4e1ebc87a316589c36f0afeed.zip
Doxygen-7d9d4320f5d183c4e1ebc87a316589c36f0afeed.tar.gz
Doxygen-7d9d4320f5d183c4e1ebc87a316589c36f0afeed.tar.bz2
Bug 734727 - GENERATE_TAGFILE no longer includes any @*section links
Diffstat (limited to 'src/tagreader.cpp')
-rw-r--r--src/tagreader.cpp24
1 files changed, 13 insertions, 11 deletions
diff --git a/src/tagreader.cpp b/src/tagreader.cpp
index 036e24f..b4fc9ed 100644
--- a/src/tagreader.cpp
+++ b/src/tagreader.cpp
@@ -1431,17 +1431,19 @@ void TagFileParser::buildLists(Entry *root)
TagPageInfo *tpi;
for (pgit.toFirst();(tpi=pgit.current());++pgit)
{
- Entry *pe = new Entry;
- pe->section = Entry::PAGEDOC_SEC;
- pe->name = tpi->name;
- pe->args = tpi->title;
- addDocAnchors(pe,tpi->docAnchors);
- TagInfo *ti = new TagInfo;
- ti->tagName = m_tagName;
- ti->fileName = tpi->filename;
- pe->tagInfo = ti;
-
- root->addSubEntry(pe);
+ if (tpi->filename!="index") // skip mainpage, there can be only one (see bug734727)
+ {
+ Entry *pe = new Entry;
+ pe->section = Entry::PAGEDOC_SEC;
+ pe->name = tpi->name;
+ pe->args = tpi->title;
+ addDocAnchors(pe,tpi->docAnchors);
+ TagInfo *ti = new TagInfo;
+ ti->tagName = m_tagName;
+ ti->fileName = tpi->filename;
+ pe->tagInfo = ti;
+ root->addSubEntry(pe);
+ }
}
}