summaryrefslogtreecommitdiffstats
path: root/src/pagedef.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/pagedef.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/pagedef.cpp')
-rw-r--r--src/pagedef.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/pagedef.cpp b/src/pagedef.cpp
index 79a78d3..93d5817 100644
--- a/src/pagedef.cpp
+++ b/src/pagedef.cpp
@@ -190,7 +190,7 @@ void PageDef::writeDocumentation(OutputList &ol)
ol.disable(OutputGenerator::Docbook);
ol.disable(OutputGenerator::RTF);
ol.disable(OutputGenerator::Man);
- if (!title().isEmpty() && !name().isEmpty() && si!=0)
+ if (hasTitle() && !name().isEmpty() && si!=0)
{
ol.startPageDoc(si->title);
//ol.startSection(si->label,si->title,si->type);
@@ -342,3 +342,9 @@ bool PageDef::showLineNo() const
{
return m_showLineNo;
}
+
+bool PageDef::hasTitle() const
+{
+ return !m_title.isEmpty() && m_title.lower()!="notitle";
+}
+