Commit ef81c70e authored by dimitri's avatar dimitri
Browse files

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

parent a9862d84
Loading
Loading
Loading
Loading
+17 −5
Original line number Original line Diff line number Diff line
@@ -778,6 +778,17 @@ 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)
          {
            reference = fd->getReference();
            outputBase = fd->getOutputFileBase();
          }
          ftv->addContentsItem(FALSE,fd->displayName(),          
                               reference, outputBase, 0,         
                               FALSE,FALSE,fd);
          if (addToIndex)
          {
            if (doc)
            if (doc)
            {
            {
              addMembersToIndex(fd,LayoutDocManager::File,fd->displayName(),QCString(),TRUE);
              addMembersToIndex(fd,LayoutDocManager::File,fd->displayName(),QCString(),TRUE);
@@ -792,6 +803,7 @@ static void writeDirHierarchy(OutputList &ol, FTVHelp* ftv,bool addToIndex)
        }
        }
      }
      }
    }
    }
  }
  endIndexHierarchy(ol,0); 
  endIndexHierarchy(ol,0); 
  if (ftv)
  if (ftv)
  {
  {