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