]> git.lyx.org Git - features.git/commitdiff
* Moving up from lower index shouldn't depend on existance of upper (and other
authorStefan Schimanski <sts@lyx.org>
Tue, 29 May 2007 20:41:31 +0000 (20:41 +0000)
committerStefan Schimanski <sts@lyx.org>
Tue, 29 May 2007 20:41:31 +0000 (20:41 +0000)
way round), OK by Uwe and Abdel

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18567 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/InsetMathScript.cpp

index 3773f1dcc83f14698f9e47092680e9760c9badc6..487c17b4770f1cbd38aece12bc599dd3e9447f16 100644 (file)
@@ -484,7 +484,7 @@ bool InsetMathScript::idxUpDown(Cursor & cur, bool up) const
        }
 
        // Are we 'up'?
-       if (has(up) && cur.idx() == idxOfScript(true)) {
+       if (cur.idx() == idxOfScript(true)) {
                // can't go further up
                if (up)
                        return false;
@@ -495,7 +495,7 @@ bool InsetMathScript::idxUpDown(Cursor & cur, bool up) const
        }
 
        // Are we 'down'?
-       if (has(up) && cur.idx() == idxOfScript(false)) {
+       if (cur.idx() == idxOfScript(false)) {
                // can't go further down
                if (!up)
                        return false;