Fix language of error insets

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3086 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Dekel Tsur 2001-11-27 10:28:10 +00:00
parent 62818cea01
commit b1b9e976a4
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2001-11-27 Dekel Tsur <dekelts@tau.ac.il>
* buffer.C (parseSingleLyXformat2Token): Set the language to the
language of the document when inserting error insets.
2001-11-26 André Pönitz <poenitz@gmx.net>
* BufferView_pimpl.[Ch]:

View File

@ -531,6 +531,8 @@ Buffer::parseSingleLyXformat2Token(LyXLex & lex, Paragraph *& par,
+ textclasslist.NameOfLayout(params.textclass, par->layout);
InsetError * new_inset = new InsetError(s);
par->insertInset(0, new_inset);
par->setFont(0, LyXFont(LyXFont::ALL_INHERIT,
params.language));
}
// Test whether the layout is obsolete.
LyXLayout const & layout =
@ -1169,6 +1171,8 @@ Buffer::parseSingleLyXformat2Token(LyXLex & lex, Paragraph *& par,
InsetError * new_inset = new InsetError(s);
par->insertInset(pos, new_inset);
par->setFont(pos, LyXFont(LyXFont::ALL_INHERIT,
params.language));
#ifndef NO_COMPABILITY
}
@ -2964,6 +2968,7 @@ 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));
}