From 59aa0e76dc205a85419306f9c95f78ed848c37c6 Mon Sep 17 00:00:00 2001 From: Dekel Tsur Date: Sat, 15 Dec 2001 15:03:06 +0000 Subject: [PATCH] cleanup git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3217 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/buffer.C | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/buffer.C b/src/buffer.C index b63565f0d3..7ae0873b37 100644 --- a/src/buffer.C +++ b/src/buffer.C @@ -1182,9 +1182,8 @@ Buffer::parseSingleLyXformat2Token(LyXLex & lex, Paragraph *& par, + " " + lex.text() + "\n"; InsetError * new_inset = new InsetError(s); - par->insertInset(pos, new_inset); - par->setFont(pos, LyXFont(LyXFont::ALL_INHERIT, - params.language)); + par->insertInset(pos, new_inset, LyXFont(LyXFont::ALL_INHERIT, + params.language)); #ifndef NO_COMPABILITY } @@ -2981,8 +2980,8 @@ void Buffer::sgmlError(Paragraph * par, int pos, { // insert an error marker in text InsetError * new_inset = new InsetError(message); - par->insertInset(pos, new_inset); - par->setFont(pos, LyXFont(LyXFont::ALL_INHERIT, params.language)); + par->insertInset(pos, new_inset, LyXFont(LyXFont::ALL_INHERIT, + params.language)); } -- 2.39.2