From 4b5a3c19573ae5e9a6e6ade8aca9fbe9f307bbd2 Mon Sep 17 00:00:00 2001 From: avostrik Date: Fri, 3 Apr 2020 22:32:49 +0300 Subject: 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 --- src/tagreader.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 &root) for (pgit.toFirst();(tpi=pgit.current());++pgit) { std::shared_ptr pe = std::make_shared(); - 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); -- cgit v0.12