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
This commit is contained in:
André Pönitz 2001-08-07 13:34:38 +00:00
parent 12c4c8233d
commit b7f17d6ba7

View File

@ -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);
}