diff options
author | albert-github <albert.tests@gmail.com> | 2014-10-11 10:16:05 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2014-10-11 10:16:05 (GMT) |
commit | d2acdcf3b1bbd4d3079cf6c4ff5de6ba6716fd06 (patch) | |
tree | d35f3329657010cfaaff1af282df896d132e580d | |
parent | 4df52916170bb81179697d0fa78c7d81fd95415f (diff) | |
download | Doxygen-d2acdcf3b1bbd4d3079cf6c4ff5de6ba6716fd06.zip Doxygen-d2acdcf3b1bbd4d3079cf6c4ff5de6ba6716fd06.tar.gz Doxygen-d2acdcf3b1bbd4d3079cf6c4ff5de6ba6716fd06.tar.bz2 |
Empty entry in \tableofcontents in case e.g. section without description.
In case a section, subsection etc just has a tag and not a description in the \tableofcontents there is nothing mentioned. With this patch the tag is used as description when no description is present, as is done on other places as well (consistency and no empty items in the \tableofcontents).
-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; } |