From: André Pönitz Date: Tue, 7 Aug 2001 13:34:38 +0000 (+0000) Subject: Fix broken left movement (and some other things using prevInset()) X-Git-Tag: 1.6.10~20904 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;ds=inline;h=b7f17d6ba74dc6a8e373c52cfa1d2b1d7e4fe653;p=lyx.git 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 --- 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); }