mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 02:49:46 +00:00
parent
91e90a7c1c
commit
b78bcc2eb2
@ -1205,10 +1205,14 @@ void InsetText::iterateForToc(DocIterator const & cdit, bool output_active,
|
|||||||
InsetArgument const * arginset = nullptr;
|
InsetArgument const * arginset = nullptr;
|
||||||
for (auto const & elem : par.insetList()) {
|
for (auto const & elem : par.insetList()) {
|
||||||
dit.pos() = elem.pos;
|
dit.pos() = elem.pos;
|
||||||
elem.inset->addToToc(dit, doing_output, utype, backend);
|
bool const being_output = doing_output &&
|
||||||
if (InsetArgument const * x = elem.inset->asInsetArgument())
|
!par.lookupChange(elem.pos).deleted();
|
||||||
if (x->isTocCaption())
|
if (being_output) {
|
||||||
arginset = x;
|
elem.inset->addToToc(dit, being_output, utype, backend);
|
||||||
|
if (InsetArgument const * x = elem.inset->asInsetArgument())
|
||||||
|
if (x->isTocCaption())
|
||||||
|
arginset = x;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// End custom AddToToc in paragraph layouts
|
// End custom AddToToc in paragraph layouts
|
||||||
|
Loading…
Reference in New Issue
Block a user