mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-07 02:28:35 +00:00
Pass proper text to TeXOnePar in Paragrapgh::Private::validate
This fixes InPreamble layouts in insets (#11557)
This commit is contained in:
parent
e325c7cc6a
commit
4f884fc92d
@ -1351,7 +1351,8 @@ void Paragraph::Private::validate(LaTeXFeatures & features) const
|
||||
otexstringstream os;
|
||||
os << layout_->preamble();
|
||||
size_t const length = os.length();
|
||||
TeXOnePar(buf, buf.text(), buf.getParFromID(owner_->id()).pit(), os,
|
||||
TeXOnePar(buf, *inset_owner_->getText(int(buf.getParFromID(owner_->id()).idx())),
|
||||
buf.getParFromID(owner_->id()).pit(), os,
|
||||
features.runparams(), string(), 0, -1, true);
|
||||
if (os.length() > length)
|
||||
features.addPreambleSnippet(os.release(), true);
|
||||
|
Loading…
Reference in New Issue
Block a user