From 5b0af9a0f00845b529986eb9b6f79da00b72f9d0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Sat, 13 Oct 2001 10:42:34 +0000 Subject: [PATCH] cursor movement bug fixed git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2879 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/math_cursor.C | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.2