diff options
author | albert-github <albert.tests@gmail.com> | 2015-01-06 20:03:38 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2015-01-06 20:03:38 (GMT) |
commit | 8c97e0cd63bcf942ee5b43c9471055a4ea27551c (patch) | |
tree | 2a62f41f438a46c9dc3fadae4479a814a4ee6ae2 /src/definition.cpp | |
parent | ab33e931873b2ccf5de8692a5cdc82feee7080d2 (diff) | |
download | Doxygen-8c97e0cd63bcf942ee5b43c9471055a4ea27551c.zip Doxygen-8c97e0cd63bcf942ee5b43c9471055a4ea27551c.tar.gz Doxygen-8c97e0cd63bcf942ee5b43c9471055a4ea27551c.tar.bz2 |
Bug 742445 - Wrong icons in TOC of CHM help
It was not checked if a page / section had subsections or not it was always assumed they were present (definition.cpp). For pages it was only checked if it had subpages and not section (index.cpp).
Diffstat (limited to 'src/definition.cpp')
-rw-r--r-- | src/definition.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/definition.cpp b/src/definition.cpp index 8014a37..0ef55d4 100644 --- a/src/definition.cpp +++ b/src/definition.cpp @@ -495,7 +495,11 @@ void Definition::addSectionsToIndex() } QCString title = si->title; if (title.isEmpty()) title = si->label; - Doxygen::indexList->addContentsItem(TRUE,title, + // determine if there is a next level inside this item + ++li; + bool isDir = ((li.current()) ? (int)(li.current()->type > nextLevel):FALSE); + --li; + Doxygen::indexList->addContentsItem(isDir,title, getReference(), getOutputFileBase(), si->label, |