]> git.lyx.org Git - features.git/commitdiff
#7681 adjust the cursor language after document language change had changed the text...
authorStephan Witt <switt@lyx.org>
Mon, 5 Sep 2011 18:46:46 +0000 (18:46 +0000)
committerStephan Witt <switt@lyx.org>
Mon, 5 Sep 2011 18:46:46 +0000 (18:46 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@39595 a592a061-630c-0410-9148-cb99ea01b6c8

src/BufferView.cpp
status.20x

index 1c5d61f1ecb7bbccdb38eb984dce21ec270f470c..dec953c103347d6b18bba09175d433174f6ce3ed 100644 (file)
@@ -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;
index e28259c21107c1a636a436f3f83f28b6e64aa115..b1027edb816f60a05a880b2f748cab4fb90ac9c8 100644 (file)
@@ -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