This commit is contained in:
Richard Kimberly Heck 2023-11-27 21:49:43 -05:00
parent 2e1c800eb8
commit 20ea874c17

View File

@ -1207,7 +1207,10 @@ void InsetText::iterateForToc(DocIterator const & cdit, bool output_active,
InsetArgument const * arginset = nullptr;
for (auto const & elem : par.insetList()) {
dit.pos() = elem.pos;
elem.inset->addToToc(dit, doing_output, utype, backend);
bool const being_output = doing_output &&
!par.lookupChange(elem.pos).deleted();
// && buffer().params.output_changes;
elem.inset->addToToc(dit, being_output, utype, backend);
if (InsetArgument const * x = elem.inset->asInsetArgument())
if (x->isTocCaption())
arginset = x;