diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2003-06-07 11:47:47 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2003-06-07 11:47:47 (GMT) |
commit | 0aa47e2a30513b04d1041d528f468d3434a81558 (patch) | |
tree | f17d17b67fdefdfdf992328f3f51dd90812c156e /src/index.cpp | |
parent | 35c2baedaa68519999af733a87d8e6ff9a89358c (diff) | |
download | Doxygen-0aa47e2a30513b04d1041d528f468d3434a81558.zip Doxygen-0aa47e2a30513b04d1041d528f468d3434a81558.tar.gz Doxygen-0aa47e2a30513b04d1041d528f468d3434a81558.tar.bz2 |
Release-1.3.1-20030607
Diffstat (limited to 'src/index.cpp')
-rw-r--r-- | src/index.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/index.cpp b/src/index.cpp index 852143a..8e369f7 100644 --- a/src/index.cpp +++ b/src/index.cpp @@ -1298,6 +1298,7 @@ void writeAlphabeticalClassList(OutputList &ol) if (cd->isLinkableInProject() && cd->templateMaster()==0) { int index = getPrefixIndex(cd->className()); + //printf("name=%s index=%d\n",cd->className().data(),index); if (toupper(cd->className().at(index))!=startLetter) // new begin letter => new header { startLetter=toupper(cd->className().at(index)); @@ -2270,6 +2271,13 @@ void writeGroupTreeNode(OutputList &ol, GroupDef *gd,int level) { HtmlHelp *htmlHelp=0; FTVHelp *ftvHelp = 0; + if (level>20) + { + warn(gd->getDefFileName(),gd->getDefLine(), + "Warning: maximum nesting level exceeded for group %s: check for possible recursive group relation!\n",gd->name().data() + ); + return; + } bool &generateHtml = Config_getBool("GENERATE_HTML") ; bool hasHtmlHelp = generateHtml && Config_getBool("GENERATE_HTMLHELP"); bool hasFtvHelp = generateHtml && Config_getBool("GENERATE_TREEVIEW"); @@ -2433,8 +2441,8 @@ void writeGroupTreeNode(OutputList &ol, GroupDef *gd,int level) md=members->next(); } - if(htmlHelp) htmlHelp->decContentsDepth(); - if(ftvHelp) ftvHelp->decContentsDepth(); + if(htmlHelp && !first) htmlHelp->decContentsDepth(); + if(ftvHelp && !first) ftvHelp->decContentsDepth(); } } |