mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-14 06:57:01 +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
|
// leave subscript to the nearest side
|
||||||
MathScriptInset * p = par()->asScriptInset();
|
MathScriptInset * p = par()->asScriptInset();
|
||||||
if (p && p->hasDown()) {
|
if (p && idx() == 0) {
|
||||||
if (pos() <= size() / 2)
|
if (pos() <= size() / 2)
|
||||||
popLeft();
|
popLeft();
|
||||||
else
|
else
|
||||||
@ -1192,7 +1192,7 @@ bool MathCursor::goDown()
|
|||||||
|
|
||||||
// leave superscript to the nearest side
|
// leave superscript to the nearest side
|
||||||
MathScriptInset * p = par()->asScriptInset();
|
MathScriptInset * p = par()->asScriptInset();
|
||||||
if (p && p->hasUp()) {
|
if (p && idx() == 1) {
|
||||||
if (pos() <= size() / 2)
|
if (pos() <= size() / 2)
|
||||||
popLeft();
|
popLeft();
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user