From 9425b06225f7e05a3df40e6fc0d03f7edbe01a31 Mon Sep 17 00:00:00 2001 From: Martin Vermeer Date: Wed, 13 Apr 2005 13:27:13 +0000 Subject: [PATCH] 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 --- src/ChangeLog | 5 +++++ src/text3.C | 3 +++ 2 files changed, 8 insertions(+) diff --git a/src/ChangeLog b/src/ChangeLog index 8d0dde6544..62176aace1 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2005-04-12 Martin Vermeer + + * text3.C (dispatch): fix language problem in newly created + textinsets (and main text) in non-english docs + 2005-04-13 Georg Baum * lyxfunc.C (getStatus, dispatch): handle LFUN_INSET_APPLY diff --git a/src/text3.C b/src/text3.C index 41e8665983..9bc9ba0529 100644 --- a/src/text3.C +++ b/src/text3.C @@ -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(); -- 2.39.5