]> git.lyx.org Git - features.git/commitdiff
Fixed one of problem
authorJürgen Vigna <jug@sad.it>
Sun, 17 Jul 2005 09:52:52 +0000 (09:52 +0000)
committerJürgen Vigna <jug@sad.it>
Sun, 17 Jul 2005 09:52:52 +0000 (09:52 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10268 a592a061-630c-0410-9148-cb99ea01b6c8

src/ChangeLog
src/text2.C

index 93495cd67f1cd33fc975966b4c0e469c5c7628cc..dc9cbb7a98f65779f7ff703d607f0f058a983e12 100644 (file)
@@ -1,3 +1,7 @@
+2005-07-17  Jean-Marc Lasgouttes  <lasgouttes@lyx.org>
+
+       * text2.C (cursorLeft): fix one of error
+
 2005-07-17  Juergen Vigna  <jug@lyx.org>
 
        * text2.C (getColumnNearX, cursorRight, cursorLeft, cursorHome,
index d4e7666b10aedc6ffb55f764e8a03cf7f75abe7b..77f4699c4ae2372147d625c9f8e3f85368314393 100644 (file)
@@ -993,7 +993,7 @@ bool LyXText::checkAndActivateInset(LCursor & cur, bool front)
 
 bool LyXText::cursorLeft(LCursor & cur)
 {
-       if (!cur.boundary() &&
+       if (!cur.boundary() && cur.pos() > 0 &&
            cur.textRow().pos() == cur.pos() &&
            !cur.paragraph().isLineSeparator(cur.pos()-1) &&
            !cur.paragraph().isNewline(cur.pos()-1))