summaryrefslogtreecommitdiffstats
path: root/src/membergroup.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2000-11-19 15:15:27 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2000-11-19 15:15:27 (GMT)
commit903cf7cad0e2a1c0e22537621a770544fa4e84ee (patch)
tree73fb7f0440c64c3b3ce21bfc475058ffb46a5bfc /src/membergroup.cpp
parent020742ed4dfa75aaa373cec43a94dc5b02e15f08 (diff)
downloadDoxygen-903cf7cad0e2a1c0e22537621a770544fa4e84ee.zip
Doxygen-903cf7cad0e2a1c0e22537621a770544fa4e84ee.tar.gz
Doxygen-903cf7cad0e2a1c0e22537621a770544fa4e84ee.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);
+ }
}