]> git.lyx.org Git - features.git/commitdiff
In InsetText::fixParagraphsFont, differentiate the case of pass thru paragraphs for...
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 2 Mar 2011 14:43:50 +0000 (14:43 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 2 Mar 2011 14:43:50 +0000 (14:43 +0000)
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

src/insets/InsetText.cpp

index 327440d37c2119cb40e207440e4d076f5fa1eeb2..e9105080a6cbbf567163978550597ce5c0044f45 100644 (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;
        }
 }