]> git.lyx.org Git - lyx.git/commitdiff
Fix broken left movement (and some other things using prevInset())
authorAndré Pönitz <poenitz@gmx.net>
Tue, 7 Aug 2001 13:34:38 +0000 (13:34 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Tue, 7 Aug 2001 13:34:38 +0000 (13:34 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2441 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/math_cursor.C

index d9727c99a916043715c2215fab4df3c0d58533b1..ace2f1228954417531070986fce3b4259629c3b5 100644 (file)
@@ -1070,10 +1070,10 @@ string MathCursorPos::readString()
 MathInset * MathCursor::prevInset() const
 {
        normalize();
 MathInset * MathCursor::prevInset() const
 {
        normalize();
-       int c = cursor().pos_;
-       if (!c)
+       int pos = cursor().pos_;
+       if (!pos)
                return 0;
                return 0;
-       return array().nextInset(c);
+       return array().nextInset(pos - 1);
 }
 
 
 }