Commit 48450ace authored by Dimitri van Heesch's avatar Dimitri van Heesch

Fixed bug that leads to empty file index in the HTML output.

parent 52445a98
...@@ -778,15 +778,27 @@ static void writeDirHierarchy(OutputList &ol, FTVHelp* ftv,bool addToIndex) ...@@ -778,15 +778,27 @@ static void writeDirHierarchy(OutputList &ol, FTVHelp* ftv,bool addToIndex)
{ {
bool doc,src; bool doc,src;
doc = fileVisibleInIndex(fd,src); doc = fileVisibleInIndex(fd,src);
QCString reference, outputBase;
if (doc) 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( if (doc)
FALSE, convertToHtml(fd->name(),TRUE), 0, {
fd->getSourceFileBase(), 0, FALSE, TRUE, fd); 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);
}
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment