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:
Jean-Marc Lasgouttes 2011-03-02 14:43:50 +00:00
parent f098abd832
commit d2720fa200

View File

@ -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;
}
}