diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2018-12-31 16:53:20 (GMT) |
---|---|---|
committer | Dimitri van Heesch <doxygen@gmail.com> | 2018-12-31 16:53:20 (GMT) |
commit | 7b4c4577ef836deada725ffb76ed1248b52e9cda (patch) | |
tree | db7867595eaa3f8b39f96ad92b6a322673adbbfc /src/definition.cpp | |
parent | 450afb801fe3aa0a9c820070f4b0f00f09e984ea (diff) | |
download | Doxygen-7b4c4577ef836deada725ffb76ed1248b52e9cda.zip Doxygen-7b4c4577ef836deada725ffb76ed1248b52e9cda.tar.gz Doxygen-7b4c4577ef836deada725ffb76ed1248b52e9cda.tar.bz2 |
Moved check for page having a title to hasTitle() method
Diffstat (limited to 'src/definition.cpp')
-rw-r--r-- | src/definition.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/definition.cpp b/src/definition.cpp index 276d02f..62a4e69 100644 --- a/src/definition.cpp +++ b/src/definition.cpp @@ -1694,7 +1694,7 @@ QCString Definition::pathFragment() const { result+=((const GroupDef*)this)->groupTitle(); } - else if (definitionType()==Definition::TypePage && !((const PageDef*)this)->title().isEmpty()) + else if (definitionType()==Definition::TypePage && ((const PageDef*)this)->hasTitle()) { result+=((const PageDef*)this)->title(); } @@ -1737,11 +1737,10 @@ QCString Definition::navigationPathAsString() const result+="<a class=\"el\" href=\"$relpath^"+getOutputFileBase()+Doxygen::htmlFileExtension+"\">"+ convertToHtml(((const GroupDef*)this)->groupTitle())+"</a>"; } - else if (definitionType()==Definition::TypePage && !((const PageDef*)this)->title().isEmpty()) + else if (definitionType()==Definition::TypePage && ((const PageDef*)this)->hasTitle()) { - if ((this==Doxygen::mainPage && mainPageHasTitle()) || this!=Doxygen::mainPage) - result+="<a class=\"el\" href=\"$relpath^"+getOutputFileBase()+Doxygen::htmlFileExtension+"\">"+ - convertToHtml(((const PageDef*)this)->title())+"</a>"; + result+="<a class=\"el\" href=\"$relpath^"+getOutputFileBase()+Doxygen::htmlFileExtension+"\">"+ + convertToHtml(((const PageDef*)this)->title())+"</a>"; } else if (definitionType()==Definition::TypeClass) { |