summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2012-07-12 18:10:33 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2012-07-12 18:10:33 (GMT)
commitef81c70eb23c904a8bc9f966515b9e6c643c803e (patch)
tree43dc35aa837982126726f66b6ecf765b9f5bdc75
parenta9862d8487c3abbf3edccc78e177874f4186c822 (diff)
downloadDoxygen-ef81c70eb23c904a8bc9f966515b9e6c643c803e.zip
Doxygen-ef81c70eb23c904a8bc9f966515b9e6c643c803e.tar.gz
Doxygen-ef81c70eb23c904a8bc9f966515b9e6c643c803e.tar.bz2
Fixed bug that leads to empty file index in the HTML output.
-rw-r--r--src/index.cpp22
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);
+ }
}
}
}