From a31c518b42ed063613d59d8c09e9f0ffa71123c2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=BCrgen=20Vigna?= Date: Sun, 17 Jul 2005 09:52:52 +0000 Subject: [PATCH] Fixed one of problem git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10268 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/ChangeLog | 4 ++++ src/text2.C | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 93495cd67f..dc9cbb7a98 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2005-07-17 Jean-Marc Lasgouttes + + * text2.C (cursorLeft): fix one of error + 2005-07-17 Juergen Vigna * text2.C (getColumnNearX, cursorRight, cursorLeft, cursorHome, diff --git a/src/text2.C b/src/text2.C index d4e7666b10..77f4699c4a 100644 --- a/src/text2.C +++ b/src/text2.C @@ -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)) -- 2.39.5