From 105b8b2bf179ec150d99e04e09ced1763f029fa6 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Tue, 15 May 2007 17:24:26 +0000 Subject: [PATCH] rev 18350: forgot this. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18351 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/Text2.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Text2.cpp b/src/Text2.cpp index 527e32f189..64da062163 100644 --- a/src/Text2.cpp +++ b/src/Text2.cpp @@ -998,8 +998,8 @@ bool Text::cursorUp(Cursor & cur) // handling when the cursor is at the end of line: Use the new // x-target only if the old one was before the end of line. if (cur.pos() != pm.rows()[row].endpos() - || (!cur.isRTL() && x < cur.targetX()) - || (cur.isRTL() && x > cur.targetX())) { + || (!reverseDirectionNeeded(cur) && x < cur.targetX()) + || (reverseDirectionNeeded(cur) && x > cur.targetX())) { x = cur.targetX(); } -- 2.39.2