mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
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:
parent
a18bf3f274
commit
21185402cb
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user