+2005-10-25 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
+
+ * toc.C (getTocList): skip paragraphs which toclevel is NOT_IN_TOC.
+
2005-10-25 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
* text.C (insertChar): do not reset boundary (bug 2061)
/// now the toc entry for the paragraph
int const toclevel = pit->layout()->toclevel;
- if (toclevel >= min_toclevel
+ if (toclevel != LyXLayout::NOT_IN_TOC
+ && toclevel >= min_toclevel
&& toclevel <= bufparams.tocdepth) {
// insert this into the table of contents
if (tocstring.empty())