From b7f17d6ba74dc6a8e373c52cfa1d2b1d7e4fe653 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Tue, 7 Aug 2001 13:34:38 +0000 Subject: [PATCH] Fix broken left movement (and some other things using prevInset()) git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2441 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/math_cursor.C | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mathed/math_cursor.C b/src/mathed/math_cursor.C index d9727c99a9..ace2f12289 100644 --- a/src/mathed/math_cursor.C +++ b/src/mathed/math_cursor.C @@ -1070,10 +1070,10 @@ string MathCursorPos::readString() MathInset * MathCursor::prevInset() const { normalize(); - int c = cursor().pos_; - if (!c) + int pos = cursor().pos_; + if (!pos) return 0; - return array().nextInset(c); + return array().nextInset(pos - 1); } -- 2.39.2