diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/doxygen.cpp | 1 | ||||
-rw-r--r-- | src/pagedef.cpp | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/doxygen.cpp b/src/doxygen.cpp index f5a280b..b79e55b 100644 --- a/src/doxygen.cpp +++ b/src/doxygen.cpp @@ -8587,6 +8587,7 @@ static void findMainPage(Entry *root) //printf("mainpage: docLine=%d startLine=%d\n",root->docLine,root->startLine); //printf("Found main page! \n======\n%s\n=======\n",root->doc.data()); QCString title=root->args.stripWhiteSpace(); + if (title.isEmpty()) title = Config_getString(PROJECT_NAME); //QCString indexName=Config_getBool(GENERATE_TREEVIEW)?"main":"index"; QCString indexName="index"; Doxygen::mainPage.reset(createPageDef(root->docFile,root->docLine, diff --git a/src/pagedef.cpp b/src/pagedef.cpp index d3cf823..a3cc0b5 100644 --- a/src/pagedef.cpp +++ b/src/pagedef.cpp @@ -82,7 +82,7 @@ PageDef *createPageDef(const char *f,int l,const char *n,const char *d,const cha PageDefImpl::PageDefImpl(const char *f,int l,const char *n, const char *d,const char *t) - : DefinitionMixin(f,l,1,n), m_title(t) + : DefinitionMixin(f,l,1,n), m_title(t?t:n) { setDocumentation(d,f,l); m_pageScope = 0; |