From 48450aced4111d3a4139ef33b2de848473c0c439 Mon Sep 17 00:00:00 2001 From: Dimitri van Heesch Date: Thu, 12 Jul 2012 18:10:33 +0000 Subject: Fixed bug that leads to empty file index in the HTML output. --- src/index.cpp | 22 +++++++++++++++++----- 1 file 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); + } } } } -- cgit v0.12