* InsetERT::resetParagraphsFont(): use Paragraph::resetFonts().

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21258 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2007-10-29 11:02:13 +00:00
parent 5e418fb660
commit 3a7509a901

View File

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