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 ce89540..03313ea 100644 --- a/src/doxygen.cpp +++ b/src/doxygen.cpp @@ -8586,6 +8586,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 9a18fda..4634be7 100644 --- a/src/pagedef.cpp +++ b/src/pagedef.cpp @@ -80,7 +80,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; |