Fixed down movement inside inset text (hopefully).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5917 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Vigna 2003-01-08 09:27:15 +00:00
parent fda29b370a
commit 8ed3c53596
2 changed files with 6 additions and 11 deletions

View File

@ -1,3 +1,8 @@
2002-12-17 Juergen Vigna <jug@lyx.org>
* insettext.C (localDispatch): hopefully fixed cursor up down
movement on leaving other insets.
2003-01-06 Michael Schmitt <Michael.Schmitt@teststep.org>
* insettext.C: fix inconsistent usage of spaces, colons, capitalization,

View File

@ -1223,20 +1223,10 @@ Inset::RESULT InsetText::localDispatch(FuncRequest const & ev)
}
break;
case FINISHED_DOWN:
{
LyXText *lt = getLyXText(bv);
if (lt->cursor.irow()->next()) {
lt->setCursorFromCoordinates(
bv, lt->cursor.ix() + inset_x,
lt->cursor.iy() -
lt->cursor.irow()->baseline() +
lt->cursor.irow()->height() + 1);
lt->cursor.x_fix(lt->cursor.x());
if ((result = moveDown(bv)) >= FINISHED) {
updateLocal(bv, CURSOR, false);
} else {
bv->unlockInset(this);
}
}
break;
default:
result = DISPATCHED;