diff options
Diffstat (limited to 'src/definition.cpp')
-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; } |