Fixed one of problem

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10268 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Vigna 2005-07-17 09:52:52 +00:00
parent a250929930
commit a31c518b42
2 changed files with 5 additions and 1 deletions

View 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,

View 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))