]> git.lyx.org Git - lyx.git/blobdiff - src/buffer_funcs.C
Scons: update_po target, part one: language_l10n.pot
[lyx.git] / src / buffer_funcs.C
index aa01afe6d7c4ec3ecbd2b5861fc0431d7d8cbb79..77c1af818d97c8b0de92b6519d9c94bb89c6c5bb 100644 (file)
@@ -703,7 +703,8 @@ void updateLabels(Buffer const & buf, bool childonly)
 
 void checkBufferStructure(Buffer & buffer, ParIterator const & par_it)
 {
-       if (par_it->layout()->labeltype == LABEL_COUNTER) {
+       if (par_it->layout()->labeltype == LABEL_COUNTER
+               && par_it->layout()->toclevel != LyXLayout::NOT_IN_TOC) {
                buffer.tocBackend().updateItem(par_it);
                buffer.structureChanged();
        }