From fd44c4ffdfae975d2356647438c3eddbaf46141a Mon Sep 17 00:00:00 2001 From: Stefan Schimanski Date: Wed, 13 Jun 2007 06:27:33 +0000 Subject: [PATCH] * 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 --- src/BufferView.cpp | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) 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); -- 2.39.2