From 0e9da9fb27147c5685088019afd428a0aaa901fa Mon Sep 17 00:00:00 2001 From: Dimitri van Heesch Date: Sun, 26 Jan 2014 15:05:34 +0100 Subject: 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 --- src/classdef.cpp | 11 +++++++++++ src/context.cpp | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/src/classdef.cpp b/src/classdef.cpp index 419e387..c7f677a 100644 --- a/src/classdef.cpp +++ b/src/classdef.cpp @@ -3953,6 +3953,17 @@ int ClassDef::countMemberDeclarations(MemberListType lt,ClassDef *inheritedFrom, count+=ml2->numDecMembers(); //printf("-> ml2=%d\n",ml2->numDecMembers()); } + // also include grouped members that have their own section in the class (see bug 722759) + if (inheritedFrom && m_impl->memberGroupSDict) + { + MemberGroupSDict::Iterator mgli(*m_impl->memberGroupSDict); + MemberGroup *mg; + for (;(mg=mgli.current());++mgli) + { + count+=mg->countGroupedInheritedMembers(lt); + if (lt2!=1) count+=mg->countGroupedInheritedMembers((MemberListType)lt2); + } + } static bool inlineInheritedMembers = Config_getBool("INLINE_INHERITED_MEMB"); if (!inlineInheritedMembers) // show inherited members as separate lists { diff --git a/src/context.cpp b/src/context.cpp index 02a5212..89b8e0e 100644 --- a/src/context.cpp +++ b/src/context.cpp @@ -6168,7 +6168,7 @@ void InheritedMemberInfoListContext::addMemberList( ClassDef *cd,MemberListType lt,const QCString &title,bool additionalList) { QPtrDict visited(17); - bool memberInSection = cd->countMembersIncludingGrouped(lt,cd,FALSE); + bool memberInSection = cd->countMembersIncludingGrouped(lt,cd,FALSE)>0; bool show = (additionalList && !memberInSection) || // inherited member to show in the additional inherited members list (!additionalList && memberInSection); // inherited member to show in a member list of the class //printf("%s:%s show=%d\n",cd->name().data(),MemberList::listTypeAsString(lt).data(),show); -- cgit v0.12