From: Stefan Schimanski Date: Wed, 13 Jun 2007 06:27:33 +0000 (+0000) Subject: * Dov's patch to make typing possible again if RTL support is disabled. X-Git-Tag: 1.6.10~9401 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=fd44c4ffdfae975d2356647438c3eddbaf46141a;p=features.git * 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 --- diff --git a/src/BufferView.cpp b/src/BufferView.cpp index 2d4288a0fe..3ee75cffdc 100644 --- a/src/BufferView.cpp +++ b/src/BufferView.cpp @@ -628,15 +628,14 @@ boost::tuple 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);