diff options
Diffstat (limited to 'src/xmlgen.cpp')
-rw-r--r-- | src/xmlgen.cpp | 2 |
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); |