summaryrefslogtreecommitdiffstats
path: root/src/tagreader.cpp
diff options
context:
space:
mode:
authoravostrik <avostrik@users.noreply.github.com>2020-04-03 19:32:49 (GMT)
committerGitHub <noreply@github.com>2020-04-03 19:32:49 (GMT)
commit4b5a3c19573ae5e9a6e6ade8aca9fbe9f307bbd2 (patch)
treef98fa63913283e89ae4eaf98f615b154a9aebd05 /src/tagreader.cpp
parente40d6588c22f465d9cdd17a58f089031ebab581b (diff)
downloadDoxygen-4b5a3c19573ae5e9a6e6ade8aca9fbe9f307bbd2.zip
Doxygen-4b5a3c19573ae5e9a6e6ade8aca9fbe9f307bbd2.tar.gz
Doxygen-4b5a3c19573ae5e9a6e6ade8aca9fbe9f307bbd2.tar.bz2
Fixed section type setting for index page from tags file. (#7684)
Resolves warning introduced by https://github.com/doxygen/doxygen/pull/7679 Signed-off-by: Andrey Vostrikov <andrey.vostrikov@cogentembedded.com>
Diffstat (limited to 'src/tagreader.cpp')
-rw-r--r--src/tagreader.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tagreader.cpp b/src/tagreader.cpp
index 275d66a..b18dfbf 100644
--- a/src/tagreader.cpp
+++ b/src/tagreader.cpp
@@ -1486,7 +1486,8 @@ void TagFileParser::buildLists(const std::shared_ptr<Entry> &root)
for (pgit.toFirst();(tpi=pgit.current());++pgit)
{
std::shared_ptr<Entry> pe = std::make_shared<Entry>();
- pe->section = tpi->filename=="index" ? Entry::MAINPAGEDOC_SEC : Entry::PAGEDOC_SEC;
+ bool isIndex = (stripExtensionGeneral(tpi->filename,getFileNameExtension(tpi->filename))=="index");
+ pe->section = isIndex ? Entry::MAINPAGEDOC_SEC : Entry::PAGEDOC_SEC;
pe->name = tpi->name;
pe->args = tpi->title;
addDocAnchors(pe,tpi->docAnchors);