* Dov's patch to make typing possible again if RTL support is disabled.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18761 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Stefan Schimanski 2007-06-13 06:27:33 +00:00
parent 70f279616c
commit fd44c4ffdf

View File

@ -628,15 +628,14 @@ boost::tuple<pit_type, pos_type, int> BufferView::moveToPosition(pit_type bottom
void BufferView::translateAndInsert(char_type c, Text * t, Cursor & cur)
{
if (!lyxrc.rtl_support)
return;
if (cursor_.innerText()->real_current_font.isRightToLeft()) {
if (intl_->keymap == Intl::PRIMARY)
intl_->keyMapSec();
} else {
if (intl_->keymap == Intl::SECONDARY)
intl_->keyMapPrim();
if (lyxrc.rtl_support) {
if (cursor_.innerText()->real_current_font.isRightToLeft()) {
if (intl_->keymap == Intl::PRIMARY)
intl_->keyMapSec();
} else {
if (intl_->keymap == Intl::SECONDARY)
intl_->keyMapPrim();
}
}
intl_->getTransManager().translateAndInsert(c, t, cur);