mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-21 23:09:40 +00:00
In InsetText::fixParagraphsFont, differentiate the case of pass thru paragraphs for which fonts should be reset, and paragraph that disable paragraph customization. In the later case, only paragraph parameters are reset.
This improves the fix in r37328 and allows centered sweave chunks, for example (although this does not work yet for other reasons) git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37831 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
f098abd832
commit
d2720fa200
@ -331,10 +331,10 @@ void InsetText::fixParagraphsFont()
|
||||
ParagraphList::iterator par = paragraphs().begin();
|
||||
ParagraphList::iterator const end = paragraphs().end();
|
||||
while (par != end) {
|
||||
if (par->isPassThru()) {
|
||||
if (par->isPassThru())
|
||||
par->resetFonts(font);
|
||||
if (!par->allowParagraphCustomization())
|
||||
par->params().clear();
|
||||
}
|
||||
++par;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user