summaryrefslogtreecommitdiffstats
path: root/src/tagreader.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2014-08-18 08:21:16 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2014-08-18 08:21:16 (GMT)
commit8b279c9bc28c70405e61219a6c2b3c6dbc7426e6 (patch)
tree8b5992a20a6f12debdd0b75362032a1d4684013c /src/tagreader.cpp
parent6385a83aa86bc5ad741d8068a574c5851bed708a (diff)
downloadDoxygen-8b279c9bc28c70405e61219a6c2b3c6dbc7426e6.zip
Doxygen-8b279c9bc28c70405e61219a6c2b3c6dbc7426e6.tar.gz
Doxygen-8b279c9bc28c70405e61219a6c2b3c6dbc7426e6.tar.bz2
Bug 734727 - GENERATE_TAGFILE no longer includes any @*section links
Changed the previous fix to allow references to sections defined in a mainpage that is imported via a tag file.
Diffstat (limited to 'src/tagreader.cpp')
-rw-r--r--src/tagreader.cpp23
1 files changed, 10 insertions, 13 deletions
diff --git a/src/tagreader.cpp b/src/tagreader.cpp
index b4fc9ed..23b8f13 100644
--- a/src/tagreader.cpp
+++ b/src/tagreader.cpp
@@ -1431,19 +1431,16 @@ void TagFileParser::buildLists(Entry *root)
TagPageInfo *tpi;
for (pgit.toFirst();(tpi=pgit.current());++pgit)
{
- 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);
- }
+ Entry *pe = new Entry;
+ pe->section = tpi->filename=="index" ? Entry::MAINPAGEDOC_SEC : 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);
}
}