summaryrefslogtreecommitdiffstats
path: root/src/diagram.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2006-07-16 20:10:06 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2006-07-16 20:10:06 (GMT)
commit243272688a4a3bc7921b7d05dda927f4adf3036c (patch)
treef167dcd5d5f9dcea2ade9e968e78c2a085f0f1fd /src/diagram.cpp
parent9dbdf881dc5f0644777cc5732e7751325b508c91 (diff)
downloadDoxygen-243272688a4a3bc7921b7d05dda927f4adf3036c.zip
Doxygen-243272688a4a3bc7921b7d05dda927f4adf3036c.tar.gz
Doxygen-243272688a4a3bc7921b7d05dda927f4adf3036c.tar.bz2
Release-1.4.7-20060716
Diffstat (limited to 'src/diagram.cpp')
-rw-r--r--src/diagram.cpp15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/diagram.cpp b/src/diagram.cpp
index e15149b..b09cf2b 100644
--- a/src/diagram.cpp
+++ b/src/diagram.cpp
@@ -258,14 +258,17 @@ void DiagramRow::insertClass(DiagramItem *parent,ClassDef *cd,bool doBases,
di->move(count()*gridWidth,level*gridHeight);
append(di);
BaseClassList *bcl=doBases ? cd->baseClasses() : cd->subClasses();
- /* there are base/sub classes */
int count=0;
- BaseClassDef *bcd=bcl->first();
- while (bcd)
+ if (bcl)
{
- ClassDef *ccd=bcd->classDef;
- if (ccd && ccd->isVisibleInHierarchy() /*&& !ccd->visited*/) count++;
- bcd=bcl->next();
+ /* there are base/sub classes */
+ BaseClassDef *bcd=bcl->first();
+ while (bcd)
+ {
+ ClassDef *ccd=bcd->classDef;
+ if (ccd && ccd->isVisibleInHierarchy() /*&& !ccd->visited*/) count++;
+ bcd=bcl->next();
+ }
}
if (count>0 && (prot!=Private || !doBases))
{