commit 20ea874c171366f59f6d2173c17c9e937202ff50 Author: Richard Kimberly Heck <rikih...@lyx.org> Date: Mon Nov 27 21:49:43 2023 -0500
Fix bug #12981 --- src/insets/InsetText.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/insets/InsetText.cpp b/src/insets/InsetText.cpp index b8be5c206b..147bf986aa 100644 --- a/src/insets/InsetText.cpp +++ b/src/insets/InsetText.cpp @@ -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; -- lyx-cvs mailing list lyx-cvs@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-cvs