From: Stephan Witt Date: Mon, 5 Sep 2011 18:46:46 +0000 (+0000) Subject: #7681 adjust the cursor language after document language change had changed the text... X-Git-Tag: 2.0.2~247 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=d111a220e14a51a6d2fb1c9f7ddd42e00a1de874;p=features.git #7681 adjust the cursor language after document language change had changed the text language git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@39595 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/BufferView.cpp b/src/BufferView.cpp index 1c5d61f1ec..dec953c103 100644 --- a/src/BufferView.cpp +++ b/src/BufferView.cpp @@ -1892,6 +1892,7 @@ void BufferView::dispatch(FuncRequest const & cmd, DispatchResult & dr) if (oldL->rightToLeft() == newL->rightToLeft() && !buffer_.isMultiLingual()) { cur.recordUndoFullDocument(); buffer_.changeLanguage(oldL, newL); + cur.setCurrentFont(); dr.forceBufferUpdate(); } break; diff --git a/status.20x b/status.20x index e28259c211..b1027edb81 100644 --- a/status.20x +++ b/status.20x @@ -53,6 +53,9 @@ What's new When a document is not multi-lingual the text contents is changed to the new language. This should be recorded for Undo (bug 7740). +- Adjust the cursor language after document language change had changed the + text language (bug 7681). + * ADVANCED FIND AND REPLACE