Skip to content

Commit 0e9da9f

Browse files
author
Dimitri van Heesch
committed
Bug 722759 - Documentation for derived classes no longer has an "Additional Inherited Members" section after upgrading Doxygen from 1.8.3.1 to 1.8.6
1 parent bc7e630 commit 0e9da9f

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

src/classdef.cpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3953,6 +3953,17 @@ int ClassDef::countMemberDeclarations(MemberListType lt,ClassDef *inheritedFrom,
39533953
count+=ml2->numDecMembers();
39543954
//printf("-> ml2=%d\n",ml2->numDecMembers());
39553955
}
3956+
// also include grouped members that have their own section in the class (see bug 722759)
3957+
if (inheritedFrom && m_impl->memberGroupSDict)
3958+
{
3959+
MemberGroupSDict::Iterator mgli(*m_impl->memberGroupSDict);
3960+
MemberGroup *mg;
3961+
for (;(mg=mgli.current());++mgli)
3962+
{
3963+
count+=mg->countGroupedInheritedMembers(lt);
3964+
if (lt2!=1) count+=mg->countGroupedInheritedMembers((MemberListType)lt2);
3965+
}
3966+
}
39563967
static bool inlineInheritedMembers = Config_getBool("INLINE_INHERITED_MEMB");
39573968
if (!inlineInheritedMembers) // show inherited members as separate lists
39583969
{

src/context.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6168,7 +6168,7 @@ void InheritedMemberInfoListContext::addMemberList(
61686168
ClassDef *cd,MemberListType lt,const QCString &title,bool additionalList)
61696169
{
61706170
QPtrDict<void> visited(17);
6171-
bool memberInSection = cd->countMembersIncludingGrouped(lt,cd,FALSE);
6171+
bool memberInSection = cd->countMembersIncludingGrouped(lt,cd,FALSE)>0;
61726172
bool show = (additionalList && !memberInSection) || // inherited member to show in the additional inherited members list
61736173
(!additionalList && memberInSection); // inherited member to show in a member list of the class
61746174
//printf("%s:%s show=%d\n",cd->name().data(),MemberList::listTypeAsString(lt).data(),show);

0 commit comments

Comments
 (0)