]> git.lyx.org Git - features.git/commitdiff
* Dov's patch to make typing possible again if RTL support is disabled.
authorStefan Schimanski <sts@lyx.org>
Wed, 13 Jun 2007 06:27:33 +0000 (06:27 +0000)
committerStefan Schimanski <sts@lyx.org>
Wed, 13 Jun 2007 06:27:33 +0000 (06:27 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18761 a592a061-630c-0410-9148-cb99ea01b6c8

src/BufferView.cpp

index 2d4288a0fe3c693ad5f6a566a90c97ae7e3a44ef..3ee75cffdce1745ab82783a2997195fc59731ea7 100644 (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);