When changing the document language, also change the language of the

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
This commit is contained in:
Enrico Forestieri 2011-09-18 21:18:57 +00:00
parent a18bf3f274
commit 21185402cb

View 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();