summaryrefslogtreecommitdiffstats
path: root/src/membergroup.cpp
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2000-11-19 15:15:27 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2000-11-19 15:15:27 (GMT)
commitf769c300f488c8ab450622701dcebee19e2dc332 (patch)
tree73fb7f0440c64c3b3ce21bfc475058ffb46a5bfc /src/membergroup.cpp
parentdd4999a16d69ec0784e2e2bd43f22fbaf4451f1f (diff)
downloadDoxygen-f769c300f488c8ab450622701dcebee19e2dc332.zip
Doxygen-f769c300f488c8ab450622701dcebee19e2dc332.tar.gz
Doxygen-f769c300f488c8ab450622701dcebee19e2dc332.tar.bz2
Release-1.2.3-20001119
Diffstat (limited to 'src/membergroup.cpp')
-rw-r--r--src/membergroup.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/membergroup.cpp b/src/membergroup.cpp
index 223932c..f1bf6bb 100644
--- a/src/membergroup.cpp
+++ b/src/membergroup.cpp
@@ -25,6 +25,7 @@
#include "filedef.h"
#include "language.h"
#include "scanner.h"
+#include "groupdef.h"
//static QCString idToName(int id)
//{
@@ -58,8 +59,9 @@ void MemberGroup::insertMember(MemberDef *md)
// memberList->first() ? memberList->first()->getSectionList() : 0,
// memberList->count(),
// md->getSectionList());
+ MemberDef *firstMd = memberList->first();
if (inSameSection && memberList->count()>0 &&
- memberList->first()->getSectionList()!=md->getSectionList())
+ firstMd->getSectionList()!=md->getSectionList())
{
inSameSection=FALSE;
}
@@ -68,6 +70,14 @@ void MemberGroup::insertMember(MemberDef *md)
inDeclSection = md->getSectionList();
}
memberList->append(md);
+
+ // copy the group of the first member in the memberGroup
+ GroupDef *gd;
+ if (firstMd && (gd=firstMd->getGroupDef()))
+ {
+ md->setGroupDef(gd);
+ gd->insertMember(md);
+ }
}