Try to catch some other cases of inappropriate TOC updating in internal bufers.

This commit is contained in:
Richard Kimberly Heck 2021-01-14 14:20:55 -05:00
parent e7b9aa672f
commit be19fdee3a

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