]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetTOC.cpp
Minor corrections and elaborations
[lyx.git] / src / insets / InsetTOC.cpp
index 46b5b4fcd974d756b56b82ca1c4315a3c936509d..0308392c0d3abaad4e474602032b4278c30d3447 100644 (file)
@@ -165,6 +165,9 @@ void InsetTOC::makeTOCWithDepth(XMLStream & xs,
                if (!tocitem.isOutput())
                        continue;
 
+               if (!tocitem.dit().paragraph().layout().htmlintoc())
+                       continue;
+
                // First, we need to manage increases and decreases of depth
                // If there's no depth to deal with, we artificially set it to 1.
                int const depth = tocitem.depth();
@@ -220,6 +223,9 @@ void InsetTOC::makeTOCNoDepth(XMLStream & xs,
                if (!tocitem.isOutput())
                        continue;
 
+               if (!tocitem.dit().paragraph().layout().htmlintoc())
+                       continue;
+
                xs << xml::StartTag("div", "class='lyxtoc-flat'") << xml::CR();
 
                Paragraph const & par = tocitem.dit().innerParagraph();