Fix language problem in new textinsets in non-english docs

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9812 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Martin Vermeer 2005-04-13 13:27:13 +00:00
parent a1ba34bef9
commit 9425b06225
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2005-04-12 Martin Vermeer <martin.vermeer@hut.fi>
* text3.C (dispatch): fix language problem in newly created
textinsets (and main text) in non-english docs
2005-04-13 Georg Baum <Georg.Baum@post.rwth-aachen.de>
* lyxfunc.C (getStatus, dispatch): handle LFUN_INSET_APPLY

View File

@ -1111,6 +1111,9 @@ void LyXText::dispatch(LCursor & cur, FuncRequest & cmd)
cur.clearSelection();
LyXFont const old_font = real_current_font;
// Prevents language turds in new lyxtexts under non-english
setCurrentFont(cur);
string::const_iterator cit = cmd.argument.begin();
string::const_iterator end = cmd.argument.end();