summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2018-12-31 14:38:14 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2018-12-31 14:38:14 (GMT)
commitddd5dac97e2dc0af0976a765ea405ba24e136349 (patch)
tree0b575b6fe39fcb9b2fb33ea6b18d88bc1bc9bf27 /src
parentd57ce63ad7dc2bc61d05980e984408f1b63ff59d (diff)
parentcfe381e3ee55b8291faeea55fe3b67bb9e545d60 (diff)
downloadDoxygen-ddd5dac97e2dc0af0976a765ea405ba24e136349.zip
Doxygen-ddd5dac97e2dc0af0976a765ea405ba24e136349.tar.gz
Doxygen-ddd5dac97e2dc0af0976a765ea405ba24e136349.tar.bz2
Merge branch 'invalid-xml-for-empty-toc' of https://github.com/mosra/doxygen into mosra-invalid-xml-for-empty-toc
Diffstat (limited to 'src')
-rw-r--r--src/xmlgen.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xmlgen.cpp b/src/xmlgen.cpp
index 44061f6..033e611 100644
--- a/src/xmlgen.cpp
+++ b/src/xmlgen.cpp
@@ -1819,7 +1819,7 @@ static void generateXMLForPage(PageDef *pd,FTextStream &ti,bool isExample)
}
writeInnerPages(pd->getSubPages(),t);
SectionDict *sectionDict = pd->getSectionDict();
- if (sectionDict && pd->localToc().isXmlEnabled())
+ if (pd->localToc().isXmlEnabled() && sectionDict)
{
t << " <tableofcontents>" << endl;
SDict<SectionInfo>::Iterator li(*sectionDict);