From: Abdelrazak Younes Date: Mon, 29 Oct 2007 11:02:13 +0000 (+0000) Subject: * InsetERT::resetParagraphsFont(): use Paragraph::resetFonts(). X-Git-Tag: 1.6.10~7620 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=3a7509a901df7d97ec818c94e91345dc213a9d75;p=features.git * InsetERT::resetParagraphsFont(): use Paragraph::resetFonts(). git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21258 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/insets/InsetERT.cpp b/src/insets/InsetERT.cpp index 319949fef9..06102b98ce 100644 --- a/src/insets/InsetERT.cpp +++ b/src/insets/InsetERT.cpp @@ -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; }