diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2006-07-16 20:10:06 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2006-07-16 20:10:06 (GMT) |
commit | 3a7dcb4cbc953fcf5ab62243743707e5e0e3d379 (patch) | |
tree | f167dcd5d5f9dcea2ade9e968e78c2a085f0f1fd /src/diagram.cpp | |
parent | 07ee85ebcc91a12df8a92078f33e700e5f9f40e8 (diff) | |
download | Doxygen-3a7dcb4cbc953fcf5ab62243743707e5e0e3d379.zip Doxygen-3a7dcb4cbc953fcf5ab62243743707e5e0e3d379.tar.gz Doxygen-3a7dcb4cbc953fcf5ab62243743707e5e0e3d379.tar.bz2 |
Release-1.4.7-20060716
Diffstat (limited to 'src/diagram.cpp')
-rw-r--r-- | src/diagram.cpp | 15 |
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)) { |