// in the original Buffer. This is especially important for VCS.
// Otherwise, we could in principle have different settings here
// than in the Buffer we were exporting.
- if (buffer().isClone())
+ // However, we need to check whether the inset is in an intitle
+ // context.
+ if (buffer().isClone()) {
+ InsetText::checkIntitleContext(it);
return;
+ }
BufferParams const & bp = buffer().params();
params_.lang = it.paragraph().getFontSettings(bp, it.pos()).language();
InsetCollapsible::updateBuffer(it, utype, deleted);
}
+void InsetText::checkIntitleContext(ParIterator const & it)
+{
+ 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;
+ }
+ }
+}
+
+
void InsetText::updateBuffer(ParIterator const & it, UpdateType utype, bool const deleted)
{
ParIterator it2 = it;
cnt.restoreLastLayout();
// FIXME cnt.restoreLastCounter()?
}
- // Record if this inset is embedded in a title layout
- // This is needed to decide when \maketitle is output.
- 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;
- }
- }
+ checkIntitleContext(it);
} else {
DocumentClass const & tclass = buffer().masterBuffer()->params().documentClass();
// Note that we do not need to call:
///
void fixParagraphsFont();
+ /// Check and record if this inset is embedded in a title layout
+ /// This is needed to decide when \maketitle is output.
+ void checkIntitleContext(ParIterator const & it);
/// does the inset contain changes ?
bool isChanged() const override { return is_changed_; }