summaryrefslogtreecommitdiffstats
path: root/src/definition.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2018-12-31 16:53:20 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2018-12-31 16:53:20 (GMT)
commit7b4c4577ef836deada725ffb76ed1248b52e9cda (patch)
treedb7867595eaa3f8b39f96ad92b6a322673adbbfc /src/definition.cpp
parent450afb801fe3aa0a9c820070f4b0f00f09e984ea (diff)
downloadDoxygen-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.cpp9
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)
{