]> git.lyx.org Git - features.git/commitdiff
* InsetERT::resetParagraphsFont(): use Paragraph::resetFonts().
authorAbdelrazak Younes <younes@lyx.org>
Mon, 29 Oct 2007 11:02:13 +0000 (11:02 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Mon, 29 Oct 2007 11:02:13 +0000 (11:02 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21258 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetERT.cpp

index 319949fef9d46a8e1fcbeda5bccf81ad6a55c719..06102b98cec00f87d48f4d30132a88a1f1eb7ba0 100644 (file)
@@ -107,10 +107,7 @@ void InsetERT::resetParagraphsFont()
        ParagraphList::iterator par = paragraphs().begin();
        ParagraphList::iterator const end = paragraphs().end();
        while (par != end) {
-               pos_type siz = par->size();
-               for (pos_type i = 0; i <= siz; ++i) {
-                       par->setFont(i, font);
-               }
+               par->resetFonts(font);
                par->params().clear();
                ++par;
        }