mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 19:25:39 +00:00
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:
parent
f6f2cfad08
commit
5b0af9a0f0
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user