summaryrefslogtreecommitdiffstats
path: root/src/membergroup.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2008-04-20 08:30:56 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2008-04-20 08:30:56 (GMT)
commitb4f20f70abd663b3d8e5889e1fe582dfe980b7a2 (patch)
tree1ef12f6f2f4d51d8e4486b2d467e6f047ef9515a /src/membergroup.cpp
parentc6c19d2984bfd7265b6d5f82336c991ec35727da (diff)
downloadDoxygen-b4f20f70abd663b3d8e5889e1fe582dfe980b7a2.zip
Doxygen-b4f20f70abd663b3d8e5889e1fe582dfe980b7a2.tar.gz
Doxygen-b4f20f70abd663b3d8e5889e1fe582dfe980b7a2.tar.bz2
Release-1.5.5-20080420
Diffstat (limited to 'src/membergroup.cpp')
-rw-r--r--src/membergroup.cpp29
1 files changed, 21 insertions, 8 deletions
diff --git a/src/membergroup.cpp b/src/membergroup.cpp
index 3b9eb89..f20ae0f 100644
--- a/src/membergroup.cpp
+++ b/src/membergroup.cpp
@@ -165,17 +165,30 @@ void MemberGroup::distributeMemberGroupDocumentation()
{
//printf("MemberGroup::distributeMemberGroupDocumentation() %s\n",grpHeader.data());
MemberDef *md=memberList->first();
- if (md && !(md->documentation().isEmpty() &&
- md->briefDescription().isEmpty() &&
- md->inbodyDocumentation().isEmpty()
- )
- )
+ while (md)
{
- //printf("First member %s has documentation!\n",md->name().data());
- MemberDef *omd=memberList->next();
+ //printf("checking md=%s\n",md->name().data());
+ // find the first member of the group with documentation
+ if (!md->documentation().isEmpty() ||
+ !md->briefDescription().isEmpty() ||
+ !md->inbodyDocumentation().isEmpty()
+ )
+ {
+ //printf("found it!\n");
+ break;
+ }
+ md=memberList->next();
+ }
+ if (md) // distribute docs of md to other members of the list
+ {
+ //printf("Member %s has documentation!\n",md->name().data());
+ MemberDef *omd=memberList->first();
while (omd)
{
- if (omd->documentation().isEmpty() && omd->briefDescription().isEmpty() && omd->inbodyDocumentation().isEmpty())
+ if (md!=omd && omd->documentation().isEmpty() &&
+ omd->briefDescription().isEmpty() &&
+ omd->inbodyDocumentation().isEmpty()
+ )
{
//printf("Copying documentation to member %s\n",omd->name().data());
omd->setBriefDescription(md->briefDescription(),md->briefFile(),md->briefLine());