Skip to content

Commit 26bfbef

Browse files
committed
No anchor should be created for inherited members
After review: Also the endDoxyAnchor should be "protected".
1 parent 04d69fd commit 26bfbef

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/memberdef.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2104,7 +2104,8 @@ void MemberDefImpl::writeDeclaration(OutputList &ol,
21042104
// If there is no detailed description we need to write the anchor here.
21052105
bool detailsVisible = hasDetailedDescription();
21062106
bool writeAnchor = (inGroup || getGroupDef()==0) && // only write anchors for member that have no details and are
2107-
!detailsVisible && !m_annMemb; // rendered inside the group page or are not grouped at all
2107+
!detailsVisible && !m_annMemb && // rendered inside the group page or are not grouped at all
2108+
inheritId.isEmpty();
21082109
if (writeAnchor)
21092110
{
21102111
QCString doxyArgs=argsString();
@@ -2113,7 +2114,7 @@ void MemberDefImpl::writeDeclaration(OutputList &ol,
21132114
{
21142115
doxyName.prepend(cdname+getLanguageSpecificSeparator(getLanguage()));
21152116
}
2116-
if (inheritId.isEmpty()) ol.startDoxyAnchor(cfname,cname,anchor(),doxyName,doxyArgs);
2117+
ol.startDoxyAnchor(cfname,cname,anchor(),doxyName,doxyArgs);
21172118
}
21182119

21192120
if (!detailsVisible)

0 commit comments

Comments
 (0)