From: André Pönitz Date: Sat, 13 Oct 2001 10:42:34 +0000 (+0000) Subject: cursor movement bug fixed X-Git-Tag: 1.6.10~20481 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=5b0af9a0f00845b529986eb9b6f79da00b72f9d0;p=features.git cursor movement bug fixed git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2879 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/mathed/math_cursor.C b/src/mathed/math_cursor.C index 9d5e20a53c..99c7ec2d0a 100644 --- a/src/mathed/math_cursor.C +++ b/src/mathed/math_cursor.C @@ -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