mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Fix bug #12981
This commit is contained in:
parent
2e1c800eb8
commit
20ea874c17
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user