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();
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();