From be19fdee3aa5154eae8b9757daeb2f97bb53bf92 Mon Sep 17 00:00:00 2001 From: Richard Kimberly Heck Date: Thu, 14 Jan 2021 14:20:55 -0500 Subject: [PATCH] Try to catch some other cases of inappropriate TOC updating in internal bufers. --- src/TocBackend.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/TocBackend.cpp b/src/TocBackend.cpp index d9ed95767a..90e7675a98 100644 --- a/src/TocBackend.cpp +++ b/src/TocBackend.cpp @@ -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(); -- 2.39.2