]> git.lyx.org Git - features.git/commitdiff
cursor movement bug fixed
authorAndré Pönitz <poenitz@gmx.net>
Sat, 13 Oct 2001 10:42:34 +0000 (10:42 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Sat, 13 Oct 2001 10:42:34 +0000 (10:42 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2879 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/math_cursor.C

index 9d5e20a53cd91efebb9af716848ff5cff22a5849..99c7ec2d0a664283c88f94bbbd9ef420e7f63682 100644 (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