summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2019-02-17 20:16:23 (GMT)
committerGitHub <noreply@github.com>2019-02-17 20:16:23 (GMT)
commit593bbe049228c208e7fe357d0898eb3abd6b8c27 (patch)
treef1f0ea2b4cfb0d0dffe6aef660c3bc24f0d53532
parent8014b32b76d6125a632b14dd5bcca304068707fa (diff)
parent1de12cd29aa72999f64bc93647a2406c6e765a5c (diff)
downloadDoxygen-593bbe049228c208e7fe357d0898eb3abd6b8c27.zip
Doxygen-593bbe049228c208e7fe357d0898eb3abd6b8c27.tar.gz
Doxygen-593bbe049228c208e7fe357d0898eb3abd6b8c27.tar.bz2
Merge pull request #6834 from albert-github/feature/bug_399222
Bug 399222 - SORT_BRIEF_DOCS produces wrong results
-rw-r--r--src/filedef.cpp12
-rw-r--r--src/membergroup.cpp3
2 files changed, 15 insertions, 0 deletions
diff --git a/src/filedef.cpp b/src/filedef.cpp
index f9f68d1..187b665 100644
--- a/src/filedef.cpp
+++ b/src/filedef.cpp
@@ -1966,6 +1966,18 @@ void FileDef::sortMemberLists()
{
if (ml->needsSorting()) { ml->sort(); ml->setNeedsSorting(FALSE); }
}
+
+ if (m_memberGroupSDict)
+ {
+ MemberGroupSDict::Iterator mgli(*m_memberGroupSDict);
+ MemberGroup *mg;
+ for (;(mg=mgli.current());++mgli)
+ {
+ MemberList *mlg = mg->members();
+ if (mlg->needsSorting()) { mlg->sort(); mlg->setNeedsSorting(FALSE); }
+ }
+ }
+
}
MemberList *FileDef::getMemberList(MemberListType lt) const
diff --git a/src/membergroup.cpp b/src/membergroup.cpp
index 3e8fea9..9c48668 100644
--- a/src/membergroup.cpp
+++ b/src/membergroup.cpp
@@ -43,8 +43,11 @@ MemberGroup::MemberGroup()
MemberGroup::MemberGroup(Definition *parent,
int id,const char *hdr,const char *d,const char *docFile,int docLine)
{
+ static bool sortBriefDocs = Config_getBool(SORT_BRIEF_DOCS);
+
//printf("New member group id=%d header=%s desc=%s\n",id,hdr,d);
memberList = new MemberList(MemberListType_memberGroup);
+ memberList->setNeedsSorting(sortBriefDocs); // detailed sections are already sorted elsewhere.
grpId = id;
grpHeader = hdr;
doc = d;