#7681 adjust the cursor language after document language change had changed the text language

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39564 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Stephan Witt 2011-08-29 17:25:44 +00:00
parent 7c17e970b1
commit 3a33672980

View File

@ -1905,6 +1905,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;