Permalink
Browse files

Bug 770747 - Broken links in HTML output with SHOW_FILES=NO

  • Loading branch information...
Dimitri van Heesch
Dimitri van Heesch committed Sep 2, 2016
1 parent d1dec80 commit d2eeb765ffcf808812e7ac1c846dee97b85ad4bf
Showing with 17 additions and 1 deletion.
  1. +15 −0 src/definition.cpp
  2. +1 −0 src/definition.h
  3. +1 −1 src/filedef.cpp
View
@@ -1876,6 +1876,21 @@ GroupList *Definition::partOfGroups() const
return m_impl->partOfGroups;
}
bool Definition::isLinkableViaGroup() const
{
GroupList *gl = partOfGroups();
if (gl)
{
GroupListIterator gli(*gl);
GroupDef *gd;
for (gli.toFirst();(gd=gli.current());++gli)
{
if (gd->isLinkable()) return TRUE;
}
}
return FALSE;
}
Definition *Definition::getOuterScope() const
{
return m_impl->outerScope;
View
@@ -257,6 +257,7 @@ class Definition : public DefinitionIntf
SrcLangExt getLanguage() const;
GroupList *partOfGroups() const;
bool isLinkableViaGroup() const;
QList<ListItemInfo> *xrefListItems() const;
View
@@ -1888,7 +1888,7 @@ void FileDef::writeMemberDocumentation(OutputList &ol,MemberListType lt,const QC
bool FileDef::isLinkableInProject() const
{
static bool showFiles = Config_getBool(SHOW_FILES);
return hasDocumentation() && !isReference() && showFiles;
return hasDocumentation() && !isReference() && (showFiles || isLinkableViaGroup());
}
static void getAllIncludeFilesRecursively(

0 comments on commit d2eeb76

Please sign in to comment.