mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-22 16:37:28 +00:00
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:
parent
62818cea01
commit
b1b9e976a4
@ -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]:
|
||||
|
@ -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));
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user