]> git.lyx.org Git - features.git/commitdiff
When changing the document language, also change the language of the
authorEnrico Forestieri <forenr@lyx.org>
Sun, 18 Sep 2011 21:18:57 +0000 (21:18 +0000)
committerEnrico Forestieri <forenr@lyx.org>
Sun, 18 Sep 2011 21:18:57 +0000 (21:18 +0000)
text which is not explicitly marked in a different language, irrespective
of the multilingual status, except for LTR<=>RTL changes.
See discussion in this thread:
http://thread.gmane.org/gmane.editors.lyx.devel/138380

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39702 a592a061-630c-0410-9148-cb99ea01b6c8

src/BufferView.cpp

index 0af790786cc60906bfe10d5c36d432b6a73d2ba0..c46d7b7d6a0e16e44133cd40942691bbad8e3512 100644 (file)
@@ -1901,7 +1901,7 @@ void BufferView::dispatch(FuncRequest const & cmd, DispatchResult & dr)
                Language const * newL = languages.getLanguage(argument);
                if (!newL || oldL == newL)
                        break;
-               if (oldL->rightToLeft() == newL->rightToLeft() && !buffer_.isMultiLingual()) {
+               if (oldL->rightToLeft() == newL->rightToLeft()) {
                        cur.recordUndoFullDocument();
                        buffer_.changeLanguage(oldL, newL);
                        cur.setCurrentFont();