From 7f7f7273f816335d556668b86aa99d05f7f09992 Mon Sep 17 00:00:00 2001 From: albert-github Date: Sat, 9 Apr 2016 18:39:34 +0200 Subject: Table of contents breaks when documentation spans multiple comment blocks with same @page Based on the question in the doxygen users forum: http://doxygen.10944.n7.nabble.com/Table-of-contents-breaks-when-documentation-spans-multiple-comment-blocks-with-same-page-td7571.html Fixed by means of that when toc is set once for a page it remains set for that page, otherwise the last page has to have the @tableofcontents command (or all @page commands) --- src/pagedef.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pagedef.cpp b/src/pagedef.cpp index 1abcb0d..6146a3c 100644 --- a/src/pagedef.cpp +++ b/src/pagedef.cpp @@ -308,6 +308,6 @@ void PageDef::setNestingLevel(int l) void PageDef::setShowToc(bool b) { - m_showToc = b; + m_showToc |= b; } -- cgit v0.12