]> git.lyx.org Git - lyx.git/commitdiff
rev 18350: forgot this.
authorAbdelrazak Younes <younes@lyx.org>
Tue, 15 May 2007 17:24:26 +0000 (17:24 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Tue, 15 May 2007 17:24:26 +0000 (17:24 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18351 a592a061-630c-0410-9148-cb99ea01b6c8

src/Text2.cpp

index 527e32f1896f1ca5892ee61270b26ada205f0aed..64da0621630f513e8ea33111abe8c6f3855f65eb 100644 (file)
@@ -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();
        }