]> git.lyx.org Git - features.git/blobdiff - src/TocBackend.cpp
Try to catch some other cases of inappropriate TOC updating in internal bufers.
[features.git] / src / TocBackend.cpp
index d9ed95767a0de1ae426687473bd7e947a243de96..90e7675a98b510e4ead7d1764ce372c502df2e9b 100644 (file)
@@ -155,6 +155,9 @@ TocBuilder & TocBackend::builder(string const & type)
 // all TOCs.
 bool TocBackend::updateItem(DocIterator const & dit_in) const
 {
+       if (dit_in.buffer() && dit_in.buffer()->isInternal())
+               return false;
+
        // we need a text
        DocIterator dit = dit_in.getInnerText();