mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 18:24:48 +00:00
Consider nesting when checking whether an inset is in a title
Amends e2a29fe556
No status entry needed.
This commit is contained in:
parent
e0840677e3
commit
8436073582
@ -796,6 +796,14 @@ void InsetText::updateBuffer(ParIterator const & it, UpdateType utype)
|
|||||||
// Record in this inset is embedded in a title layout
|
// Record in this inset is embedded in a title layout
|
||||||
// This is needed to decide when \maketitle is output.
|
// This is needed to decide when \maketitle is output.
|
||||||
intitle_context_ = it.paragraph().layout().intitle;
|
intitle_context_ = it.paragraph().layout().intitle;
|
||||||
|
// Also check embedding layouts
|
||||||
|
size_t const n = it.depth();
|
||||||
|
for (size_t i = 0; i < n; ++i) {
|
||||||
|
if (it[i].paragraph().layout().intitle) {
|
||||||
|
intitle_context_ = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
DocumentClass const & tclass = buffer().masterBuffer()->params().documentClass();
|
DocumentClass const & tclass = buffer().masterBuffer()->params().documentClass();
|
||||||
// Note that we do not need to call:
|
// Note that we do not need to call:
|
||||||
|
Loading…
Reference in New Issue
Block a user