mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 10:58:52 +00:00
Fix bug #12981
This commit is contained in:
parent
20ea874c17
commit
61181a3977
@ -1209,11 +1209,12 @@ void InsetText::iterateForToc(DocIterator const & cdit, bool output_active,
|
|||||||
dit.pos() = elem.pos;
|
dit.pos() = elem.pos;
|
||||||
bool const being_output = doing_output &&
|
bool const being_output = doing_output &&
|
||||||
!par.lookupChange(elem.pos).deleted();
|
!par.lookupChange(elem.pos).deleted();
|
||||||
// && buffer().params.output_changes;
|
if (being_output) {
|
||||||
elem.inset->addToToc(dit, being_output, utype, backend);
|
elem.inset->addToToc(dit, being_output, utype, backend);
|
||||||
if (InsetArgument const * x = elem.inset->asInsetArgument())
|
if (InsetArgument const * x = elem.inset->asInsetArgument())
|
||||||
if (x->isTocCaption())
|
if (x->isTocCaption())
|
||||||
arginset = x;
|
arginset = x;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// End custom AddToToc in paragraph layouts
|
// End custom AddToToc in paragraph layouts
|
||||||
|
Loading…
Reference in New Issue
Block a user