diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2014-10-11 15:18:28 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2014-10-11 15:18:28 (GMT) |
commit | 7290439e50fbce00d9e99928799f0faf560444ef (patch) | |
tree | dbc1b58f89f68267a8817c4185164d193d8467b7 | |
parent | c617684555ae5e228f301ff0a3f8ae2950b6c41f (diff) | |
parent | d2acdcf3b1bbd4d3079cf6c4ff5de6ba6716fd06 (diff) | |
download | Doxygen-7290439e50fbce00d9e99928799f0faf560444ef.zip Doxygen-7290439e50fbce00d9e99928799f0faf560444ef.tar.gz Doxygen-7290439e50fbce00d9e99928799f0faf560444ef.tar.bz2 |
Merge pull request #234 from albert-github/feature/bug_toc
Empty entry in \tableofcontents in case e.g. section without description
-rw-r--r-- | src/definition.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/definition.cpp b/src/definition.cpp index d2e3e01..3c11916 100644 --- a/src/definition.cpp +++ b/src/definition.cpp @@ -1618,7 +1618,7 @@ void Definition::writeToc(OutputList &ol) } cs[0]='0'+nextLevel; if (inLi[nextLevel]) ol.writeString("</li>\n"); - ol.writeString("<li class=\"level"+QCString(cs)+"\"><a href=\"#"+si->label+"\">"+si->title+"</a>"); + ol.writeString("<li class=\"level"+QCString(cs)+"\"><a href=\"#"+si->label+"\">"+(si->title.isEmpty()?si->label:si->title)+"</a>"); inLi[nextLevel]=TRUE; level = nextLevel; } |