summaryrefslogtreecommitdiffstats
path: root/src/commentscan.l
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2021-05-08 12:24:01 (GMT)
committeralbert-github <albert.tests@gmail.com>2021-05-08 12:24:01 (GMT)
commit36ac0ef72404e15109e0ceba9d6588930415f239 (patch)
tree9fb9198d57530bd73b6e2932958eb35e794ba225 /src/commentscan.l
parentae0844009961225fe7b9755cb5e3e0a2ee90f00c (diff)
downloadDoxygen-36ac0ef72404e15109e0ceba9d6588930415f239.zip
Doxygen-36ac0ef72404e15109e0ceba9d6588930415f239.tar.gz
Doxygen-36ac0ef72404e15109e0ceba9d6588930415f239.tar.bz2
Missing page when followed by mainpage
When we have in one file a `\page` followed by a `\mainpage` than this page is not shown / completely ignore, an example: ``` @page pg_tst_1 Test 1 the 1 page @mainpage Test MainPage the mainpage ``` this problem is due to the fact that `handleMainPage` is called when a `\mainpage` command is found, and this is also the case at the end of the content of `\page` resulting in the fact that the name of this page is removed (and thus actually the complete page).
Diffstat (limited to 'src/commentscan.l')
-rw-r--r--src/commentscan.l1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/commentscan.l b/src/commentscan.l
index adf7e1b..23a0471 100644
--- a/src/commentscan.l
+++ b/src/commentscan.l
@@ -2120,7 +2120,6 @@ static bool handleMainpage(yyscan_t yyscanner,const QCString &, const StringVect
{
struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
bool stop=makeStructuralIndicator(yyscanner,Entry::MAINPAGEDOC_SEC);
- yyextra->current->name = "";
if (!stop)
{
yyextra->current->name = "mainpage";