cursor movement bug fixed

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2879 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2001-10-13 10:42:34 +00:00
parent f6f2cfad08
commit 5b0af9a0f0

View File

@ -1159,7 +1159,7 @@ bool MathCursor::goUp()
// leave subscript to the nearest side
MathScriptInset * p = par()->asScriptInset();
if (p && p->hasDown()) {
if (p && idx() == 0) {
if (pos() <= size() / 2)
popLeft();
else
@ -1192,7 +1192,7 @@ bool MathCursor::goDown()
// leave superscript to the nearest side
MathScriptInset * p = par()->asScriptInset();
if (p && p->hasUp()) {
if (p && idx() == 1) {
if (pos() <= size() / 2)
popLeft();
else