diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2012-07-12 18:10:33 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2012-07-12 18:10:33 (GMT) |
commit | 48450aced4111d3a4139ef33b2de848473c0c439 (patch) | |
tree | 43dc35aa837982126726f66b6ecf765b9f5bdc75 /src/index.cpp | |
parent | 52445a98210e9aa50b3fd4bb36995e117539e490 (diff) | |
download | Doxygen-48450aced4111d3a4139ef33b2de848473c0c439.zip Doxygen-48450aced4111d3a4139ef33b2de848473c0c439.tar.gz Doxygen-48450aced4111d3a4139ef33b2de848473c0c439.tar.bz2 |
Fixed bug that leads to empty file index in the HTML output.
Diffstat (limited to 'src/index.cpp')
-rw-r--r-- | src/index.cpp | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/src/index.cpp b/src/index.cpp index 8fd476f..7053bb6 100644 --- a/src/index.cpp +++ b/src/index.cpp @@ -778,15 +778,27 @@ static void writeDirHierarchy(OutputList &ol, FTVHelp* ftv,bool addToIndex) { bool doc,src; doc = fileVisibleInIndex(fd,src); + QCString reference, outputBase; if (doc) { - addMembersToIndex(fd,LayoutDocManager::File,fd->displayName(),QCString(),TRUE); + reference = fd->getReference(); + outputBase = fd->getOutputFileBase(); } - else if (src) + ftv->addContentsItem(FALSE,fd->displayName(), + reference, outputBase, 0, + FALSE,FALSE,fd); + if (addToIndex) { - Doxygen::indexList.addContentsItem( - FALSE, convertToHtml(fd->name(),TRUE), 0, - fd->getSourceFileBase(), 0, FALSE, TRUE, fd); + if (doc) + { + addMembersToIndex(fd,LayoutDocManager::File,fd->displayName(),QCString(),TRUE); + } + else if (src) + { + Doxygen::indexList.addContentsItem( + FALSE, convertToHtml(fd->name(),TRUE), 0, + fd->getSourceFileBase(), 0, FALSE, TRUE, fd); + } } } } |